Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/Utils.cpp

Issue 6112412478472192: Issue 1547 - Pass isolate to v8::API (Closed)
Patch Set: remove new empty lines Created Feb. 9, 2015, 11:02 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/Utils.h ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/Utils.cpp
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 8542afa4942cb6eee8f2792705012fd646adacc9..790265675fb3e318992ba5fae6422178f9c40d17 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -43,9 +43,10 @@ std::string Utils::FromV8String(v8::Handle<v8::Value> value)
return std::string();
}
-v8::Local<v8::String> Utils::ToV8String(const std::string& str)
+v8::Local<v8::String> Utils::ToV8String(v8::Isolate* isolate, const std::string& str)
{
- return v8::String::New(str.c_str(), str.length());
+ return v8::String::NewFromUtf8(isolate, str.c_str(),
+ v8::String::NewStringType::kNormalString, str.length());
}
« no previous file with comments | « src/Utils.h ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld