diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-02-06 18:46:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 18:46:25 +0000 |
commit | 551420132c357467a747cae12be39c2662ce56f1 (patch) | |
tree | c3eac8ac64078004a2d2cbfba29fc33c648339ba /lib/ast.js | |
parent | b0040ba6540232687204d125eff021adf11c4efa (diff) | |
download | tracifyjs-551420132c357467a747cae12be39c2662ce56f1.tar.gz tracifyjs-551420132c357467a747cae12be39c2662ce56f1.zip |
export missing API for AST manipulation (#3707)
Diffstat (limited to 'lib/ast.js')
-rw-r--r-- | lib/ast.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -351,7 +351,7 @@ var AST_Toplevel = DEFNODE("Toplevel", "globals", { filename: "wrap=" + JSON.stringify(name) }).transform(new TreeTransformer(function(node) { if (node instanceof AST_Directive && node.value == "$ORIG") { - return MAP.splice(body); + return List.splice(body); } })); }, @@ -370,7 +370,7 @@ var AST_Toplevel = DEFNODE("Toplevel", "globals", { filename: "enclose=" + JSON.stringify(args_values) }).transform(new TreeTransformer(function(node) { if (node instanceof AST_Directive && node.value == "$ORIG") { - return MAP.splice(body); + return List.splice(body); } })); } |