| Index: src/js/promise.js
|
| diff --git a/src/js/promise.js b/src/js/promise.js
|
| index eb63c280a181649e52877550c4e03bc43098ab67..33c067b37f4296cc19a94895607739d618362e82 100644
|
| --- a/src/js/promise.js
|
| +++ b/src/js/promise.js
|
| @@ -144,27 +144,6 @@ function PromiseReject(r) {
|
|
|
| // Combinators.
|
|
|
| -// ES#sec-promise.resolve
|
| -// Promise.resolve ( x )
|
| -function PromiseResolve(x) {
|
| - if (!IS_RECEIVER(this)) {
|
| - throw %make_type_error(kCalledOnNonObject, PromiseResolve);
|
| - }
|
| - if (%is_promise(x) && x.constructor === this) return x;
|
| -
|
| - // Avoid creating resolving functions.
|
| - if (this === GlobalPromise) {
|
| - var promise = %promise_internal_constructor(UNDEFINED);
|
| - %promise_resolve(promise, x);
|
| - return promise;
|
| - }
|
| -
|
| - // debugEvent is not so meaningful here as it will be resolved
|
| - var promiseCapability = NewPromiseCapability(this, true);
|
| - %_Call(promiseCapability.resolve, UNDEFINED, x);
|
| - return promiseCapability.promise;
|
| -}
|
| -
|
| // ES#sec-promise.all
|
| // Promise.all ( iterable )
|
| function PromiseAll(iterable) {
|
| @@ -336,7 +315,6 @@ utils.InstallFunctions(GlobalPromise, DONT_ENUM, [
|
| "reject", PromiseReject,
|
| "all", PromiseAll,
|
| "race", PromiseRace,
|
| - "resolve", PromiseResolve
|
| ]);
|
|
|
| %InstallToContext([
|
|
|