Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
index 81518f79b0f6221e457b7c6d0a045e442219063f..ccc17c256a1d786c949178f2de173c5076d744d7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
@@ -371,6 +371,13 @@ inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, |
v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
} |
+template <typename CallbackInfo, typename Wrappable> |
+inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, |
yhirano
2016/10/21 01:48:58
Can you tell me why this is needed?
horo
2016/10/21 10:56:40
navigationPreloadAttributeGetter() in V8FetchEvent
yhirano
2016/10/24 07:13:39
+yukishiino@chromium.org
I think this is a bug in
Yuki
2016/10/24 08:43:21
Is this spec-conformant? I've never hard of nulla
|
+ blink::ScriptPromise promise, |
+ const Wrappable* wrappable) { |
+ v8SetReturnValue(callbackInfo, promise.v8Value()); |
+} |
+ |
// Convert v8::String to a WTF::String. If the V8 string is not already |
// an external string then it is transformed into an external string at this |
// point to avoid repeated conversions. |