Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: src/bootstrapper.cc

Issue 1990803005: [runtime] set AsyncFunctionNext/Throw to adapt arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/harmony/async-debug-basic.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index b96b834505c0ab62d528d74add2207a4d218e2e7..32d024dd785eff8008835636dab050dba90984fa 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2471,7 +2471,9 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
SimpleInstallFunction(container, "AsyncFunctionThrow",
Builtins::kGeneratorPrototypeThrow, 2, false);
async_function_next->shared()->set_native(true);
+ async_function_next->shared()->set_internal_formal_parameter_count(1);
caitp (gmail) 2016/05/18 14:38:23 question: why do we not set internal_formal_parame
caitp (gmail) 2016/05/18 18:21:13 It may be a more general / better solution to hand
async_function_throw->shared()->set_native(true);
+ async_function_throw->shared()->set_internal_formal_parameter_count(1);
}
}
}
« no previous file with comments | « no previous file | test/mjsunit/harmony/async-debug-basic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698