diff options
author | Jeremy Apthorp <nornagon@nornagon.net> | 2019-01-08 00:39:43 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-29 02:05:15 +0300 |
commit | 817218c9cfd78feaef720b0055cd18d08f774400 (patch) | |
tree | 88f3c840953f8d65e0c69ed63062500d5c42a31b /src/node_contextify.cc | |
parent | f399b01dc4dbb47f678301aea6f476527889b959 (diff) |
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.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_contextify.cc b/src/node_contextify.cc index fc89f58f8be..fd17ae179f6 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) { |