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

Unified Diff: src/bootstrapper.cc

Issue 2796243002: Add isPromise V8 extras util (Closed)
Patch Set: Fix typo Created 3 years, 8 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 | src/js/prologue.js » ('j') | src/js/prologue.js » ('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 eb06ff17a3e38b139019522152360d478422e55d..0b840a5f4aca880456182ccf5abdd719f7b81987 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -4214,6 +4214,8 @@ bool Genesis::InstallNatives(GlobalContextType context_type) {
factory()->NewStringFromAsciiChecked("createPromise"));
InstallFunction(extras_utils, isolate()->promise_resolve(),
factory()->NewStringFromAsciiChecked("resolvePromise"));
+ InstallFunction(extras_utils, isolate()->is_promise(),
+ factory()->NewStringFromAsciiChecked("isPromise"));
int builtin_index = Natives::GetDebuggerCount();
// Only run prologue.js and runtime.js at this point.
« no previous file with comments | « no previous file | src/js/prologue.js » ('j') | src/js/prologue.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698