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

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 6b43a22094c661901cda9335c75f4c832d802de9..18325ba68eced85beb4689f9a5d1bcfeada5b913 100644
--- a/Source/modules/fetch/Body.cpp
+++ b/Source/modules/fetch/Body.cpp
@@ -424,7 +424,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(v8NormalString(isolate, "JSON parse error")));
return;
}
m_resolver->resolve(parsed);

Powered by Google App Engine
This is Rietveld 408576698