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

Unified Diff: Source/modules/fetch/Body.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/fetch/Body.cpp
diff --git a/Source/modules/fetch/Body.cpp b/Source/modules/fetch/Body.cpp
index 13e29e1af8acacaef7e3afe032b2b2e62e521449..519e0e4faa687e9ee57a6287c6ff6d337718c9dd 100644
--- a/Source/modules/fetch/Body.cpp
+++ b/Source/modules/fetch/Body.cpp
@@ -423,7 +423,7 @@ void Body::resolveJSON(const String& string)
if (trycatch.HasCaught())
m_resolver->reject(trycatch.Exception());
else
- m_resolver->reject(v8::Exception::Error(v8::String::NewFromUtf8(isolate, "JSON parse error")));
+ m_resolver->reject(v8::Exception::Error(v8AtomicString(isolate, "JSON parse error")));
return;
}
m_resolver->resolve(parsed);

Powered by Google App Engine
This is Rietveld 408576698