diff --git a/src/js/promise.js b/src/js/promise.js index 24ca74b531..348d5fb93e 100644 --- a/src/js/promise.js +++ b/src/js/promise.js @@ -248,8 +248,6 @@ function PromiseIdResolveHandler(x) { return x; } function PromiseIdRejectHandler(r) { %_ReThrow(r); } SET_PRIVATE(PromiseIdRejectHandler, promiseForwardingHandlerSymbol, true); -function PromiseNopResolver() {} - // ------------------------------------------------------------------- // Define exported functions. @@ -261,7 +259,7 @@ function IsPromise(x) { } function PromiseCreate() { - return new GlobalPromise(PromiseNopResolver); + return PromiseInit(new GlobalPromise(promiseRawSymbol)); } // ES#sec-promise-resolve-functions