Index: src/js/async-await.js |
diff --git a/src/js/async-await.js b/src/js/async-await.js |
index f05feb293695ff679456814c8a74fe0d11c5bf89..221fdb881ab33738307a48b54c8c7151e32681b8 100644 |
--- a/src/js/async-await.js |
+++ b/src/js/async-await.js |
@@ -14,6 +14,7 @@ |
var AsyncFunctionNext; |
var AsyncFunctionThrow; |
var CreateInternalPromiseCapability; |
+var PerformPromiseThen; |
var PromiseCreate; |
var PromiseNextMicrotaskID; |
var RejectPromise; |
@@ -23,6 +24,7 @@ |
AsyncFunctionNext = from.AsyncFunctionNext; |
AsyncFunctionThrow = from.AsyncFunctionThrow; |
CreateInternalPromiseCapability = from.CreateInternalPromiseCapability; |
+ PerformPromiseThen = from.PerformPromiseThen; |
PromiseCreate = from.PromiseCreate; |
RejectPromise = from.RejectPromise; |
ResolvePromise = from.ResolvePromise; |
@@ -42,7 +44,6 @@ |
// ------------------------------------------------------------------- |
function PromiseCastResolved(value) { |
- // TODO(caitp): This is non spec compliant. See v8:5694. |
if (%is_promise(value)) { |
return value; |
} else { |
@@ -105,7 +106,7 @@ |
outerPromise); |
} |
- %perform_promise_then(promise, onFulfilled, onRejected, throwawayCapability); |
+ PerformPromiseThen(promise, onFulfilled, onRejected, throwawayCapability); |
} |
// Called by the parser from the desugaring of 'await' when catch |