Skip to content

Commit 25d0cd6

Browse files
committed
Fix initialization
1 parent ec7c714 commit 25d0cd6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/node_modules/@stdlib/repl/ctor/lib/complete_resolve_local_scopes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ function resolveScopes( ast ) {
234234
if ( ast.type !== 'Program' ) {
235235
throw new TypeError( 'invalid argument. Must provide a program AST node.' );
236236
}
237+
ast.locals = [];
237238
walk( ast, VISITORS );
238239
return ast;
239240
}

0 commit comments

Comments
 (0)