Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 533c6249ca9abee8dd498ffaf216a2c823554744..594ee546690ca1f67b07eb53dd7fa0d03d6778b6 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -31,6 +31,7 @@ |
#include "src/v8.h" |
+#include "src/ast-value-factory.h" |
#include "src/compiler.h" |
#include "src/execution.h" |
#include "src/isolate.h" |
@@ -796,8 +797,10 @@ void TestScanRegExp(const char* re_source, const char* expected) { |
CHECK(start == i::Token::DIV || start == i::Token::ASSIGN_DIV); |
CHECK(scanner.ScanRegExpPattern(start == i::Token::ASSIGN_DIV)); |
scanner.Next(); // Current token is now the regexp literal. |
+ i::AstValueFactory ast_value_factory(NULL); |
+ ast_value_factory.Internalize(CcTest::i_isolate()); |
i::Handle<i::String> val = |
- scanner.AllocateInternalizedString(CcTest::i_isolate()); |
+ scanner.CurrentSymbol(&ast_value_factory)->string(); |
i::DisallowHeapAllocation no_alloc; |
i::String::FlatContent content = val->GetFlatContent(); |
CHECK(content.IsAscii()); |