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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h

Issue 2566513002: Create bare-bones ScriptModule class (Closed)
Patch Set: Update copyrights Created 3 years, 11 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: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
index 6dfbb3a0cbc1bde6dd5e0c446c175904687519bb..b2e697acb4e01b561ee584a5705b12e6672c7bc4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
@@ -81,6 +81,9 @@ class CORE_EXPORT V8ScriptRunner final {
CachedMetadataHandler* = nullptr,
AccessControlStatus = SharableCrossOrigin,
V8CacheOptions = V8CacheOptionsDefault);
+ static v8::MaybeLocal<v8::Module> compileModule(v8::Isolate*,
+ const String& source,
+ const String& fileName);
static v8::MaybeLocal<v8::Value> runCompiledScript(v8::Isolate*,
v8::Local<v8::Script>,
ExecutionContext*);
@@ -110,6 +113,9 @@ class CORE_EXPORT V8ScriptRunner final {
int argc,
v8::Local<v8::Value> info[],
v8::Isolate*);
+ static v8::MaybeLocal<v8::Value> evaluateModule(v8::Local<v8::Module>,
+ v8::Local<v8::Context>,
+ v8::Isolate*);
static v8::MaybeLocal<v8::Object> instantiateObject(
v8::Isolate*,
v8::Local<v8::ObjectTemplate>);

Powered by Google App Engine
This is Rietveld 408576698