Index: test/cctest/test-threads.cc |
diff --git a/test/cctest/test-threads.cc b/test/cctest/test-threads.cc |
index c43c420d0e6dcce1cbb42daf0d9d861a490eac25..41f8b2d4c0ada4bbe8974dd81ab90f5cebb31d49 100644 |
--- a/test/cctest/test-threads.cc |
+++ b/test/cctest/test-threads.cc |
@@ -58,7 +58,8 @@ class ThreadA : public v8::internal::Thread { |
// Fill String.search cache. |
v8::Handle<v8::Script> script = v8::Script::Compile( |
- v8::String::New( |
+ v8::String::NewFromUtf8( |
+ isolate, |
"for (var i = 0; i < 3; i++) {" |
" var result = \"a\".search(\"a\");" |
" if (result != 0) throw \"result: \" + result + \" @\" + i;" |