| Index: Source/modules/crypto/CryptoResultImpl.cpp
|
| diff --git a/Source/modules/crypto/CryptoResultImpl.cpp b/Source/modules/crypto/CryptoResultImpl.cpp
|
| index 5d6c808c38d35140d1f0ac376ed3ab4fff10207d..53d2fca0ddd2b6de17fd3d9c745dcf6e8794260f 100644
|
| --- a/Source/modules/crypto/CryptoResultImpl.cpp
|
| +++ b/Source/modules/crypto/CryptoResultImpl.cpp
|
| @@ -184,13 +184,10 @@ void CryptoResultImpl::completeWithKeyPair(const WebCryptoKey& publicKey, const
|
| ScriptState* scriptState = m_resolver->scriptState();
|
| ScriptState::Scope scope(scriptState);
|
|
|
| - Dictionary keyPair = Dictionary::createEmpty(scriptState->isolate());
|
| + V8ObjectBuilder keyPair(scriptState->isolate());
|
|
|
| - v8::Handle<v8::Value> publicKeyValue = toV8(CryptoKey::create(publicKey), scriptState->context()->Global(), scriptState->isolate());
|
| - v8::Handle<v8::Value> privateKeyValue = toV8(CryptoKey::create(privateKey), scriptState->context()->Global(), scriptState->isolate());
|
| -
|
| - keyPair.set("publicKey", publicKeyValue);
|
| - keyPair.set("privateKey", privateKeyValue);
|
| + keyPair.add("publicKey", ScriptValue::from(scriptState, CryptoKey::create(publicKey)));
|
| + keyPair.add("privateKey", ScriptValue::from(scriptState, CryptoKey::create(privateKey)));
|
|
|
| m_resolver->resolve(keyPair.v8Value());
|
| }
|
|
|