| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 7901edc91a79b2c4883d66c344626d085c7d6ef9..6dd744502f1365936714e85136190f301783ca30 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();
|
|
|