| Index: Source/core/events/PromiseRejectionEvent.cpp
|
| diff --git a/Source/core/events/PromiseRejectionEvent.cpp b/Source/core/events/PromiseRejectionEvent.cpp
|
| index 2a4eb14da3e3e3f7db1e1889e116c6543a59e2ba..6351986ce8cbc1144df988d415b6d1230a48137a 100644
|
| --- a/Source/core/events/PromiseRejectionEvent.cpp
|
| +++ b/Source/core/events/PromiseRejectionEvent.cpp
|
| @@ -29,16 +29,14 @@ PromiseRejectionEvent::~PromiseRejectionEvent()
|
| {
|
| }
|
|
|
| -ScriptPromise PromiseRejectionEvent::promise(ScriptState* state) const
|
| +v8::Local<v8::Value> PromiseRejectionEvent::promise(v8::Isolate* isolate) const
|
| {
|
| - v8::Local<v8::Value> value = m_promise.newLocal(state->isolate());
|
| - return ScriptPromise(state, value);
|
| + return m_promise.newLocal(isolate);
|
| }
|
|
|
| -ScriptValue PromiseRejectionEvent::reason(ScriptState* state) const
|
| +v8::Local<v8::Value> PromiseRejectionEvent::reason(v8::Isolate* isolate) const
|
| {
|
| - v8::Local<v8::Value> value = m_reason.newLocal(state->isolate());
|
| - return ScriptValue(state, value);
|
| + return m_reason.newLocal(isolate);
|
| }
|
|
|
| const AtomicString& PromiseRejectionEvent::interfaceName() const
|
|
|