improve source-map generation (#3782)

- emit singleton segments to mark generated code from input
This commit is contained in:
Alex Lam S.L
2020-04-16 16:30:25 +01:00
committed by GitHub
parent 38c3bcf9a0
commit 46d142cbf6
7 changed files with 84 additions and 15 deletions

View File

@@ -1470,7 +1470,6 @@ function OutputStream(options) {
AST_Node,
// since the label symbol will mark it
AST_LabeledStatement,
AST_Toplevel,
], noop);
// XXX: I'm not exactly sure if we need it for all of these nodes,
@@ -1482,7 +1481,6 @@ function OutputStream(options) {
AST_Constant,
AST_Debugger,
AST_Definitions,
AST_Directive,
AST_Finally,
AST_Jump,
AST_Lambda,