| 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 e211d9ca61313f245fe71486a6d4c3e545c1fbec..926cec829001fa6ff945b1f82e45d51ed08396b7 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ToV8.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.h
|
| @@ -262,6 +262,13 @@ inline v8::Local<v8::Value> toV8(T&& value, ScriptState* scriptState)
|
| // This hack helps detect such unwanted implicit conversions from T* to bool.
|
| v8::Local<v8::Value> toV8(void* value, v8::Local<v8::Object> creationContext, v8::Isolate*) = delete;
|
|
|
| +// Cannot define in ScriptValue because of the circular dependency between toV8 and ScriptValue
|
| +template<typename T>
|
| +inline ScriptValue ScriptValue::from(ScriptState* scriptState, T&& value)
|
| +{
|
| + return ScriptValue(scriptState, toV8(std::forward<T>(value), scriptState));
|
| +}
|
| +
|
| } // namespace blink
|
|
|
| #endif // ToV8_h
|
|
|