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

Unified Diff: src/bootstrapper.cc

Issue 2655253004: [inspector] introduced stepIntoAsync for chained callbacks (Closed)
Patch Set: fixed async/await and added tests Created 3 years, 10 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 | « src/api.cc ('k') | src/debug/debug.h » ('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 c9069db0826a3596d082b43aa027a90365399cf7..0365c92378c4b5332e4061bd824ace4ceacf75cb 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1923,11 +1923,13 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
InstallSpeciesGetter(promise_fun);
- SimpleInstallFunction(promise_fun, "resolve", Builtins::kPromiseResolve, 1,
- true, DONT_ENUM);
+ Handle<JSFunction> resolve = SimpleInstallFunction(
+ promise_fun, "resolve", Builtins::kPromiseResolve, 1, true, DONT_ENUM);
+ resolve->shared()->set_is_promise_builtin(true);
- SimpleInstallFunction(promise_fun, "reject", Builtins::kPromiseReject, 1,
- true, DONT_ENUM);
+ Handle<JSFunction> reject = SimpleInstallFunction(
+ promise_fun, "reject", Builtins::kPromiseReject, 1, true, DONT_ENUM);
+ reject->shared()->set_is_promise_builtin(true);
Handle<Map> prototype_map(prototype->map());
Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate);
@@ -3406,6 +3408,7 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
Builtins::kAsyncFunctionAwaitCaught, 3, false);
InstallWithIntrinsicDefaultProto(
isolate, function, Context::ASYNC_FUNCTION_AWAIT_CAUGHT_INDEX);
+ function->shared()->set_is_promise_builtin(true);
}
{
@@ -3414,6 +3417,7 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
Builtins::kAsyncFunctionAwaitUncaught, 3, false);
InstallWithIntrinsicDefaultProto(
isolate, function, Context::ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX);
+ function->shared()->set_is_promise_builtin(true);
}
{
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698