Index: third_party/WebKit/Source/bindings/core/v8/ToV8.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ToV8.h b/third_party/WebKit/Source/bindings/core/v8/ToV8.h |
index 0e67e54c2c5fa79189d62e8addab59a57ce7a830..b83b6c1d7e048dbdea4bd0052787b1fd852e43aa 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ToV8.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.h |
@@ -17,6 +17,7 @@ |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "bindings/core/v8/V8Binding.h" |
#include "core/CoreExport.h" |
+#include "core/dom/NotShared.h" |
#include "platform/heap/Handle.h" |
#include "platform/wtf/Forward.h" |
#include "v8/include/v8.h" |
@@ -275,6 +276,13 @@ inline v8::Local<v8::Value> ToV8(const HeapVector<std::pair<String, T>>& value, |
return object; |
} |
+template <typename T> |
+inline v8::Local<v8::Value> ToV8(NotShared<T> value, |
+ v8::Local<v8::Object> creationContext, |
+ v8::Isolate* isolate) { |
+ return ToV8(value.view(), creationContext, isolate); |
+} |
+ |
template <typename Sequence> |
inline v8::Local<v8::Value> toV8SequenceInternal( |
const Sequence& sequence, |