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

Unified Diff: src/isolate.h

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: simplify error handling Created 3 years, 9 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 0d6494604edb8956bb48ac014abf51a2d995fd2e..a497476e007160b63fd8577acf4ab72e7c44de12 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1189,6 +1189,12 @@ class Isolate {
bool IsInAnyContext(Object* object, uint32_t index);
+ void SetHostImportModuleDynamicallyCallback(
+ HostImportModuleDynamicallyCallback callback);
+ void RunHostImportModuleDynamicallyCallback(Handle<String> source_url,
neis 2017/03/17 10:36:32 Nit: keep the name source_url in sync with v8.h (t
gsathya 2017/03/17 21:47:59 Done.
+ Handle<String> specifier,
+ Handle<JSPromise> promise);
+
void SetRAILMode(RAILMode rail_mode);
RAILMode rail_mode() { return rail_mode_.Value(); }
@@ -1419,6 +1425,7 @@ class Isolate {
base::AtomicValue<RAILMode> rail_mode_;
bool promise_hook_or_debug_is_active_;
PromiseHook promise_hook_;
+ HostImportModuleDynamicallyCallback host_import_module_dynamically_callback_;
base::Mutex rail_mutex_;
double load_start_time_ms_;

Powered by Google App Engine
This is Rietveld 408576698