repl: attach location info to syntax errors · nodejs/node@aaab108 · GitHub
Skip to content

Commit aaab108

Browse files
cjihrigrvagg
authored andcommitted
repl: attach location info to syntax errors
Currently, when a file with a syntax error is imported in the REPL, no information is provided on the error's location. This commit adds the error's location to the stack trace. Refs: #2762 Refs: #3411 Refs: #3784 PR-URL: #4013 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent e68ea16 commit aaab108

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

lib/repl.js

Lines changed: 1 addition & 0 deletions
Lines changed: 39 additions & 0 deletions

0 commit comments

Comments
 (0)