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

Unified Diff: src/bootstrapper.cc

Issue 2723273002: [inspector] introduced Debugger.scheduleStepIntoAsync (Closed)
Patch Set: override current scheduled step into async if presented 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') | src/inspector/js_protocol.json » ('J')
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 3e5264dd94ab154bdbd2f775e75175f0164df2c7..a12871220e050ce9a2b5dcf5b7f96ef9c325696f 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2034,11 +2034,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);
@@ -3517,6 +3519,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);
}
{
@@ -3525,6 +3528,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') | src/inspector/js_protocol.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698