Index: src/js/async-await.js |
diff --git a/src/js/async-await.js b/src/js/async-await.js |
index f0104ed9accb64234437d57ab5b842d86c3af6c0..079a5fcaa44b723e1b7c631e93cc38ba499f1a74 100644 |
--- a/src/js/async-await.js |
+++ b/src/js/async-await.js |
@@ -106,11 +106,6 @@ function AsyncFunctionAwaitCaught(generator, awaited, outerPromise) { |
AsyncFunctionAwait(generator, awaited, outerPromise); |
} |
-// How the parser rejects promises from async/await desugaring |
-function RejectPromiseNoDebugEvent(promise, reason) { |
- return %promise_internal_reject(promise, reason, false); |
-} |
- |
function AsyncFunctionPromiseCreate() { |
var promise = %promise_internal_constructor(UNDEFINED); |
if (DEBUG_IS_ACTIVE) { |
@@ -135,7 +130,6 @@ function AsyncFunctionPromiseRelease(promise) { |
%InstallToContext([ |
"async_function_await_caught", AsyncFunctionAwaitCaught, |
"async_function_await_uncaught", AsyncFunctionAwaitUncaught, |
- "reject_promise_no_debug_event", RejectPromiseNoDebugEvent, |
"async_function_promise_create", AsyncFunctionPromiseCreate, |
"async_function_promise_release", AsyncFunctionPromiseRelease, |
]); |