Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: Source/modules/crypto/CryptoResultImpl.cpp

Issue 1027593003: bindings: Use Maybe version of v8::String::NewFromUtf8() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/crypto/CryptoResultImpl.cpp
diff --git a/Source/modules/crypto/CryptoResultImpl.cpp b/Source/modules/crypto/CryptoResultImpl.cpp
index 5d6c808c38d35140d1f0ac376ed3ab4fff10207d..8038ea7b552ba53b426900d9265e9337a32d56a0 100644
--- a/Source/modules/crypto/CryptoResultImpl.cpp
+++ b/Source/modules/crypto/CryptoResultImpl.cpp
@@ -150,7 +150,7 @@ void CryptoResultImpl::completeWithJson(const char* utf8Data, unsigned length)
ScriptState* scriptState = resolver->scriptState();
ScriptState::Scope scope(scriptState);
- v8::Handle<v8::String> jsonString = v8::String::NewFromUtf8(scriptState->isolate(), utf8Data, v8::String::kInternalizedString, length);
+ v8::Handle<v8::String> jsonString = v8AtomicString(scriptState->isolate(), utf8Data, length);
v8::TryCatch exceptionCatcher;
v8::Handle<v8::Value> jsonDictionary = v8::JSON::Parse(jsonString);

Powered by Google App Engine
This is Rietveld 408576698