| Index: Source/bindings/v8/CallbackPromiseAdapter.h
|
| diff --git a/Source/bindings/v8/CallbackPromiseAdapter.h b/Source/bindings/v8/CallbackPromiseAdapter.h
|
| index 612dfb9863f97e85214679a346da086dd4c76de3..53e55cd7ae44bbea37075bb9bc5e9002fa5d9bd1 100644
|
| --- a/Source/bindings/v8/CallbackPromiseAdapter.h
|
| +++ b/Source/bindings/v8/CallbackPromiseAdapter.h
|
| @@ -47,7 +47,8 @@ namespace WebCore {
|
| //
|
| // class MyClass ... {
|
| // typedef blink::WebMyClass WebType;
|
| -// static PassRefPtr<MyClass> from(blink::WebMyClass* webInstance) {
|
| +// static PassRefPtr<MyClass> from(NewScriptState*,
|
| +// blink::WebMyClass* webInstance) {
|
| // // convert/create as appropriate, but often it's just:
|
| // return MyClass::create(adoptPtr(webInstance));
|
| // }
|
| @@ -73,7 +74,7 @@ public:
|
| virtual void onSuccess(typename S::WebType* result) OVERRIDE
|
| {
|
| NewScriptState::Scope scope(m_scriptState.get());
|
| - m_resolver->resolve(S::from(result));
|
| + m_resolver->resolve(S::from(m_scriptState.get(), result));
|
| }
|
| virtual void onError(typename T::WebType* error) OVERRIDE
|
| {
|
|
|