diff options
Diffstat (limited to 'deps/v8/test/cctest/parsing/test-scanner.cc')
-rw-r--r-- | deps/v8/test/cctest/parsing/test-scanner.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/cctest/parsing/test-scanner.cc b/deps/v8/test/cctest/parsing/test-scanner.cc index 9451d61d899..7fb670e017a 100644 --- a/deps/v8/test/cctest/parsing/test-scanner.cc +++ b/deps/v8/test/cctest/parsing/test-scanner.cc @@ -7,6 +7,7 @@ #include "src/handles/handles-inl.h" #include "src/objects/objects-inl.h" +#include "src/parsing/parse-info.h" #include "src/parsing/scanner-character-streams.h" #include "src/parsing/scanner.h" #include "test/cctest/cctest.h" @@ -34,8 +35,9 @@ struct ScannerTestHelper { ScannerTestHelper make_scanner(const char* src) { ScannerTestHelper helper; helper.stream = ScannerStream::ForTesting(src); - helper.scanner = - std::unique_ptr<Scanner>(new Scanner(helper.stream.get(), false)); + helper.scanner = std::unique_ptr<Scanner>( + new Scanner(helper.stream.get(), + UnoptimizedCompileFlags::ForTest(CcTest::i_isolate()))); helper.scanner->Initialize(); return helper; } |