Index: Source/bindings/core/v8/V8Binding.h |
diff --git a/Source/bindings/core/v8/V8Binding.h b/Source/bindings/core/v8/V8Binding.h |
index 170c48bf19c394b3b7d9881dae81306670ba41cf..db8fc68643b97cad011490e3b32ba8b42c3597db 100644 |
--- a/Source/bindings/core/v8/V8Binding.h |
+++ b/Source/bindings/core/v8/V8Binding.h |
@@ -803,6 +803,12 @@ inline bool toV8Sequence(v8::Handle<v8::Value> value, uint32_t& length, v8::Isol |
return true; |
} |
+template <typename T> |
+T script_value_cast(const ScriptValue& value, v8::Isolate* isolate, ExceptionState& exceptionState) |
+{ |
+ return NativeValueTraits<T>::nativeValue(value.v8Value(), isolate, exceptionState); |
+} |
+ |
template<> |
struct NativeValueTraits<String> { |
static inline String nativeValue(const v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) |