| Index: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
|
| diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
|
| index e992b4b5ed03a8fb5241dc719b219e62dc21792c..d4a4d412c14d890d49a38424658bce8bd606bbbd 100644
|
| --- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
|
| +++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
|
| @@ -762,7 +762,7 @@ ScriptPromise MediaKeySession::close(ScriptState* scriptState) {
|
| // 1. Let session be the associated MediaKeySession object.
|
| // 2. If session is closed, return a resolved promise.
|
| if (m_isClosed)
|
| - return ScriptPromise::cast(scriptState, ScriptValue());
|
| + return ScriptPromise::castUndefined(scriptState);
|
|
|
| // 3. If session's callable value is false, return a promise rejected with
|
| // an InvalidStateError.
|
|
|