Lines Matching refs:fn
28 function fn() {} function
31 fn[promisify.custom] = promisifedFn;
32 assert.strictEqual(promisify(fn), promisifedFn);
33 assert.strictEqual(promisify(promisify(fn)), promisifedFn);
37 function fn() {}
44 fn[kCustomPromisifiedSymbol] = promisifiedFn;
47 assert.strictEqual(promisify(fn), promisifiedFn);
48 assert.strictEqual(promisify(promisify(fn)), promisifiedFn);
52 function fn() {}
53 fn[promisify.custom] = 42;
55 () => promisify(fn),
64 function fn(callback) {
68 fn[customPromisifyArgs] = ['first', 'second'];
70 promisify(fn)().then(common.mustCall((obj) => {
76 const fn = vm.runInNewContext('(function() {})');
77 assert.notStrictEqual(Object.getPrototypeOf(promisify(fn)),
82 function fn(callback) {
85 promisify(fn)().then(common.mustCall((value) => {
91 function fn(callback) {
94 promisify(fn)().then(common.mustCall((value) => {
100 function fn(callback) {
103 promisify(fn)().then(common.mustCall((value) => {
109 function fn(err, val, callback) {
112 promisify(fn)(null, 42).then(common.mustCall((value) => {
118 function fn(err, val, callback) {
121 promisify(fn)(new Error('oops'), null).catch(common.mustCall((err) => {
127 function fn(err, val, callback) {
132 const value = await promisify(fn)(null, 42);
139 const fn = promisify(function(cb) {
144 o.fn = fn;
146 o.fn().then(common.mustCall((val) => assert(val)));
153 const fn = promisify(function(cb) {
159 await fn();