Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 15efd086effe81f646e0c3e07f2ca3a9bb32ea3f..bd1e24e11529f977b65cfe069eafa5ad34b62d33 100755 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -349,10 +349,10 @@ TEST(Regress928) { |
"try { } catch (e) { var foo = function () { /* first */ } }" |
"var bar = function () { /* second */ }"; |
- i::Utf8ToUC16CharacterStream stream(reinterpret_cast<const i::byte*>(program), |
- static_cast<unsigned>(strlen(program))); |
- i::ScriptDataImpl* data = |
- i::ParserApi::PartialPreParse(&stream, NULL, false); |
+ v8::HandleScope handles; |
+ i::Handle<i::String> source( |
+ FACTORY->NewStringFromAscii(i::CStrVector(program))); |
+ i::ScriptDataImpl* data = i::ParserApi::PartialPreParse(source, NULL, false); |
CHECK(!data->HasError()); |
data->Initialize(); |