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

Unified Diff: src/api.cc

Issue 68213002: api: set ScriptOrigin::ResourceIsSharedCrossOrigin()
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 401007b4359b6c86c4184dd9183c561adb37a58f..f676b2d81eb8879b64fc61501ac14ccaacd9cc12 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -4149,7 +4149,8 @@ ScriptOrigin Function::GetScriptOrigin() const {
v8::ScriptOrigin origin(
Utils::ToLocal(scriptName),
v8::Integer::New(script->line_offset()->value()),
- v8::Integer::New(script->column_offset()->value()));
+ v8::Integer::New(script->column_offset()->value()),
+ v8::Boolean::New(script->is_shared_cross_origin()));
return origin;
}
return v8::ScriptOrigin(Handle<Value>());
« no previous file with comments | « no previous file | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698