Index: src/js/async-await.js |
diff --git a/src/js/async-await.js b/src/js/async-await.js |
index 079a5fcaa44b723e1b7c631e93cc38ba499f1a74..e1c75c008dc0dc0273a28faa0d62b3e3ae0ea66b 100644 |
--- a/src/js/async-await.js |
+++ b/src/js/async-await.js |
@@ -106,32 +106,9 @@ function AsyncFunctionAwaitCaught(generator, awaited, outerPromise) { |
AsyncFunctionAwait(generator, awaited, outerPromise); |
} |
-function AsyncFunctionPromiseCreate() { |
- var promise = %promise_internal_constructor(UNDEFINED); |
- if (DEBUG_IS_ACTIVE) { |
- // Push the Promise under construction in an async function on |
- // the catch prediction stack to handle exceptions thrown before |
- // the first await. |
- // Assign ID and create a recurring task to save stack for future |
- // resumptions from await. |
- %DebugAsyncFunctionPromiseCreated(promise); |
- } |
- return promise; |
-} |
- |
-function AsyncFunctionPromiseRelease(promise) { |
- if (DEBUG_IS_ACTIVE) { |
- // Pop the Promise under construction in an async function on |
- // from catch prediction stack. |
- %DebugPopPromise(); |
- } |
-} |
- |
%InstallToContext([ |
"async_function_await_caught", AsyncFunctionAwaitCaught, |
"async_function_await_uncaught", AsyncFunctionAwaitUncaught, |
- "async_function_promise_create", AsyncFunctionPromiseCreate, |
- "async_function_promise_release", AsyncFunctionPromiseRelease, |
]); |
}) |