Skip to content

Commit d2cd4c3

Browse files
authored
fix: pass options when parsing to suppress warnings in the REPL
PR-URL: #2430 Closes: #2429 Reviewed-by: Athan Reines <kgryte@gmail.com> Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
1 parent a5c9e56 commit d2cd4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/repl/lib/acorn_detect_multiline_input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function plugin( Parser ) {
163163

164164
// First try parsing as a partially wrapped expression...
165165
debug( 'Attempting to parse as a wrapped expression...' );
166-
if ( CustomParser.hasMultilineError( code ) ) {
166+
if ( CustomParser.hasMultilineError( code, this.options ) ) {
167167
return true;
168168
}
169169
// Now try parsing as an unwrapped expression...

0 commit comments

Comments
 (0)