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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp

Issue 2774843002: Pass AccessControlStatus to compileModule() (Closed)
Patch Set: const 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
Index: third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
index fdd619dbc1a29322bef059c1c5afaca72d344cd9..3e38b06198b65faca2d5268eba812938591807f1 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
@@ -20,12 +20,14 @@ ScriptModule::~ScriptModule() {}
ScriptModule ScriptModule::compile(v8::Isolate* isolate,
const String& source,
- const String& fileName) {
+ const String& fileName,
+ AccessControlStatus accessControlStatus) {
v8::TryCatch tryCatch(isolate);
tryCatch.SetVerbose(true);
v8::Local<v8::Module> module;
- if (!v8Call(V8ScriptRunner::compileModule(isolate, source, fileName), module,
- tryCatch)) {
+ if (!v8Call(V8ScriptRunner::compileModule(isolate, source, fileName,
+ accessControlStatus),
+ module, tryCatch)) {
// Compilation error is not used in Blink implementaion logic.
// Note: Error message is delivered to user (e.g. console) by message
// listeners set on v8::Isolate. See V8Initializer::initalizeMainThread().

Powered by Google App Engine
This is Rietveld 408576698