| 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,
|
| + 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.
|
|
|