| Index: src/ast/ast-numbering.cc
|
| diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc
|
| index f891bd72366eef075df45dfbc2f02eff0e5cb5ce..dcc32fbe401977ea157f1bcde1dc83cb01516711 100644
|
| --- a/src/ast/ast-numbering.cc
|
| +++ b/src/ast/ast-numbering.cc
|
| @@ -579,7 +579,8 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) {
|
| DisableCrankshaft(kRestParameter);
|
| }
|
|
|
| - if (FLAG_ignition && scope->NeedsContext() && scope->is_script_scope()) {
|
| + if (FLAG_ignition && scope->NeedsContext() &&
|
| + (scope->is_script_scope() || scope->is_module_scope())) {
|
| // Create ScopeInfo while on the main thread to avoid allocation during
|
| // potentially concurrent bytecode generation.
|
| node->scope()->GetScopeInfo(isolate_);
|
|
|