Chromium Code Reviews| Index: third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
| diff --git a/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp b/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
| index ff04f11bb9e6d1c5c881948882c961552219e752..7db684426e0358b9c384aa6bafe77c528f9aff35 100644 |
| --- a/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
| +++ b/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
| @@ -192,7 +192,7 @@ void CryptoResultImpl::completeWithJson(const char* utf8Data, unsigned length) |
| ScriptState* scriptState = m_resolver->getScriptState(); |
| ScriptState::Scope scope(scriptState); |
| - v8::Local<v8::String> jsonString = v8AtomicString(scriptState->isolate(), utf8Data, length); |
| + v8::Local<v8::String> jsonString = v8StringFromUtf8(scriptState->isolate(), utf8Data, length); |
|
haraken
2016/07/13 01:12:49
Can we use v8AtomicString(..., StringView(utf8Data
esprehn
2016/07/13 01:50:30
That would mangle the utf8 data which needs to be
|
| v8::TryCatch exceptionCatcher(scriptState->isolate()); |
| v8::Local<v8::Value> jsonDictionary; |