Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 348d5fb93ebf5de4625f7815629c0bca7ecef209..793d60fb0a7fa29f5f828da7dee849d5d42dabb1 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -370,7 +370,7 @@ function DoRejectPromise(promise, reason) { |
function NewPromiseCapability(C, debugEvent) { |
if (C === GlobalPromise) { |
// Optimized case, avoid extra closure. |
- var promise = PromiseInit(new GlobalPromise(promiseRawSymbol)); |
+ var promise = PromiseCreate(); |
var callbacks = CreateResolvingFunctions(promise, debugEvent); |
return { |
promise: promise, |
@@ -476,7 +476,7 @@ function PromiseResolve(x) { |
// Avoid creating resolving functions. |
if (this === GlobalPromise) { |
- var promise = PromiseInit(new GlobalPromise(promiseRawSymbol)); |
+ var promise = PromiseCreate(); |
var resolveResult = ResolvePromise(promise, x); |
return promise; |
} |