Lines Matching refs:common
4 const common = require('../common');
19 Array.prototype[Symbol.iterator] = common.mustNotCall('%Array.prototype%[@@iterator]');
20 Promise.all = common.mustNotCall('%Promise%.all');
21 Promise.allSettled = common.mustNotCall('%Promise%.allSettled');
22 Promise.any = common.mustNotCall('%Promise%.any');
23 Promise.race = common.mustNotCall('%Promise%.race');
27 set: common.mustNotCall('set %Promise.prototype%.catch'),
28 get: common.mustNotCall('get %Promise.prototype%.catch'),
31 set: common.mustNotCall('set %Promise.prototype%.finally'),
32 get: common.mustNotCall('get %Promise.prototype%.finally'),
35 set: common.mustNotCall('set %Promise.prototype%.then'),
36 get: common.mustNotCall('get %Promise.prototype%.then'),
42 set: common.mustNotCall('set %Array.prototype%.then'),
43 get: common.mustNotCall('get %Array.prototype%.then'),
48 set: common.mustNotCall('set %Object.prototype%.then'),
49 get: common.mustNotCall('get %Object.prototype%.then'),
53 assertIsPromise(PromisePrototypeThen(test(), common.mustCall()));
54 assertIsPromise(SafePromisePrototypeFinally(test(), common.mustCall()));
69 common.mustCall((val) => {
84 common.mustNotCall('Should have rejected'),
85 common.mustCall((err) => {
91 common.mustNotCall('Should have rejected'),
92 common.mustCall((err) => {
116 const catchFn = common.mustCall();
117 const finallyFn = common.mustCall();
132 PromisePrototypeThen(promise, common.mustCall());