| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 9f7e889968481f85d03986264ff9bf746b27a342..b8282d294c559c064f678ecacde2511b8d4a89b8 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -1575,13 +1575,12 @@ void TestParserSyncWithFlags(i::Handle<i::String> source,
|
| i::FunctionLiteral* function;
|
| {
|
| i::Handle<i::Script> script = factory->NewScript(source);
|
| + script->set_is_module(is_module);
|
| i::Zone zone(CcTest::i_isolate()->allocator());
|
| i::ParseInfo info(&zone, script);
|
| i::Parser parser(&info);
|
| SetParserFlags(&parser, flags);
|
| - if (is_module) {
|
| - info.set_module();
|
| - } else {
|
| + if (!is_module) {
|
| info.set_global();
|
| }
|
| parser.Parse(&info);
|
|
|