Index: Source/modules/crypto/CryptoResultImpl.cpp |
diff --git a/Source/modules/crypto/CryptoResultImpl.cpp b/Source/modules/crypto/CryptoResultImpl.cpp |
index 6ebe4ee5dc8d5b9989f6aef30624c5bedd3e4e9e..916b47b8dcebce27b2310d25e8bf5bfff2c64a28 100644 |
--- a/Source/modules/crypto/CryptoResultImpl.cpp |
+++ b/Source/modules/crypto/CryptoResultImpl.cpp |
@@ -158,7 +158,11 @@ void CryptoResultImpl::completeWithKeyPair(const WebCryptoKey& publicKey, const |
ScriptState* scriptState = m_resolver->scriptState(); |
ScriptState::Scope scope(scriptState); |
+#ifdef REMOVE_DIC |
+ Dictionary keyPair(v8::Object::New(scriptState->isolate()), scriptState->isolate()); |
+#else |
Dictionary keyPair = Dictionary::createEmpty(scriptState->isolate()); |
+#endif |
v8::Handle<v8::Value> publicKeyValue = toV8NoInline(CryptoKey::create(publicKey), scriptState->context()->Global(), scriptState->isolate()); |
v8::Handle<v8::Value> privateKeyValue = toV8NoInline(CryptoKey::create(privateKey), scriptState->context()->Global(), scriptState->isolate()); |