MCPcopy Create free account
hub / github.com/nodejs/node / rejectLater

Function rejectLater

deps/v8/test/mjsunit/es8/async-function-try-finally.js:74–78  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

72}
73
74function rejectLater(reason) {
75 return new Promise(function(resolve, reject) {
76 reject(reason);
77 });
78}
79
80class MyError extends Error {};
81var AsyncFunction = async function() {}.constructor;

Callers 1

Calls 1

rejectFunction · 0.70

Tested by

no test coverage detected