| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 2ec378b25cd855a0f8e08caf2b7481b04e7fc419..7fba2b021614fc66b9d3204accd1a205e4529a4a 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -1572,13 +1572,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);
|
|
|