| Index: third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp b/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| index a1333b4117036e41a40883283aa10218f1a7d766..a949d4b37d1c96320384de62a1b4dd1e8dee21f7 100644
|
| --- a/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| @@ -44,7 +44,7 @@ ScriptValue PromiseRejectionEvent::reason(ScriptState* state) const
|
| {
|
| // Return null when the value is accessed by a different world than the world that created the value.
|
| if (m_reason.isEmpty() || !m_scriptState || !m_scriptState->contextIsValid() || m_scriptState->world().worldId() != state->world().worldId())
|
| - return ScriptValue(state, v8::Null(state->isolate()));
|
| + return ScriptValue(state, v8::Undefined(state->isolate()));
|
| return ScriptValue(m_scriptState.get(), m_reason.newLocal(m_scriptState->isolate()));
|
| }
|
|
|
|
|