Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index eb166ab68d2e53745f8659ae1c1648785488d215..6b1815383314046ef429acc68dd43c6c7a489335 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -942,17 +942,21 @@ class ScriptOrigin { |
V8_INLINE(ScriptOrigin( |
Handle<Value> resource_name, |
Handle<Integer> resource_line_offset = Handle<Integer>(), |
- Handle<Integer> resource_column_offset = Handle<Integer>())) |
+ Handle<Integer> resource_column_offset = Handle<Integer>(), |
+ Handle<Boolean> resource_is_shared_cross_origin = Handle<Boolean>())) |
: resource_name_(resource_name), |
resource_line_offset_(resource_line_offset), |
- resource_column_offset_(resource_column_offset) { } |
+ resource_column_offset_(resource_column_offset), |
+ resource_is_shared_cross_origin_(resource_is_shared_cross_origin) { } |
V8_INLINE(Handle<Value> ResourceName() const); |
V8_INLINE(Handle<Integer> ResourceLineOffset() const); |
V8_INLINE(Handle<Integer> ResourceColumnOffset() const); |
+ V8_INLINE(Handle<Boolean> ResourceIsSharedCrossOrigin() const); |
private: |
Handle<Value> resource_name_; |
Handle<Integer> resource_line_offset_; |
Handle<Integer> resource_column_offset_; |
+ Handle<Boolean> resource_is_shared_cross_origin_; |
}; |
@@ -1130,6 +1134,12 @@ class V8EXPORT Message { |
*/ |
int GetEndColumn() const; |
+ /** |
+ * Passes on the value set by the embedder when it fed the script from which |
+ * this Message was generated to V8. |
+ */ |
+ bool IsSharedCrossOrigin() const; |
+ |
// TODO(1245381): Print to a string instead of on a FILE. |
static void PrintCurrentStackTrace(FILE* out); |
@@ -5996,6 +6006,10 @@ Handle<Integer> ScriptOrigin::ResourceColumnOffset() const { |
return resource_column_offset_; |
} |
+Handle<Boolean> ScriptOrigin::ResourceIsSharedCrossOrigin() const { |
+ return resource_is_shared_cross_origin_; |
+} |
+ |
Handle<Boolean> Boolean::New(bool value) { |
return value ? True() : False(); |