summaryrefslogtreecommitdiff
path: root/src/node_contextify.cc
diff options
context:
space:
mode:
authorJeremy Apthorp <nornagon@nornagon.net>2019-01-07 13:39:43 -0800
committerAnna Henningsen <anna@addaleax.net>2019-01-29 00:05:15 +0100
commit817218c9cfd78feaef720b0055cd18d08f774400 (patch)
tree88f3c840953f8d65e0c69ed63062500d5c42a31b /src/node_contextify.cc
parentf399b01dc4dbb47f678301aea6f476527889b959 (diff)
downloadandroid-node-v8-817218c9cfd78feaef720b0055cd18d08f774400.tar.gz
android-node-v8-817218c9cfd78feaef720b0055cd18d08f774400.tar.bz2
android-node-v8-817218c9cfd78feaef720b0055cd18d08f774400.zip
vm: mark scripts as shareable cross-origin
PR-URL: https://github.com/nodejs/node/pull/25380 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_contextify.cc')
-rw-r--r--src/node_contextify.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_contextify.cc b/src/node_contextify.cc
index fc89f58f8b..fd17ae179f 100644
--- a/src/node_contextify.cc
+++ b/src/node_contextify.cc
@@ -692,7 +692,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
ScriptOrigin origin(filename,
line_offset, // line offset
column_offset, // column offset
- False(isolate), // is cross origin
+ True(isolate), // is cross origin
Local<Integer>(), // script id
Local<Value>(), // source map URL
False(isolate), // is opaque (?)
@@ -1004,7 +1004,7 @@ void ContextifyContext::CompileFunction(
data + cached_data_buf->ByteOffset(), cached_data_buf->ByteLength());
}
- ScriptOrigin origin(filename, line_offset, column_offset);
+ ScriptOrigin origin(filename, line_offset, column_offset, True(isolate));
ScriptCompiler::Source source(code, origin, cached_data);
ScriptCompiler::CompileOptions options;
if (source.GetCachedData() == nullptr) {