Index: Source/bindings/core/v8/V8Binding.h |
diff --git a/Source/bindings/core/v8/V8Binding.h b/Source/bindings/core/v8/V8Binding.h |
index 14cac2abf7a8479a83b545b4f787cd7f298cb3ff..7239d997172da27c0fa835096e3c93855c8c6cc8 100644 |
--- a/Source/bindings/core/v8/V8Binding.h |
+++ b/Source/bindings/core/v8/V8Binding.h |
@@ -615,6 +615,14 @@ struct NativeValueTraits<v8::Handle<v8::Value> > { |
} |
}; |
+template<> |
+struct NativeValueTraits<ScriptValue> { |
+ static inline ScriptValue nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate) |
+ { |
+ return ScriptValue(ScriptState::current(isolate), value); |
+ } |
+}; |
+ |
v8::Handle<v8::Value> toV8Sequence(v8::Handle<v8::Value>, uint32_t& length, v8::Isolate*); |
// Converts a JavaScript value to an array as per the Web IDL specification: |