aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAl
2019-05-17Update NEWS.Ludovic Courtès
2019-05-16Update NEWS.7a747cae12be39c2662ce56f1 (patch)
treec3eac8ac64078004a2d2cbfba29fc33c648339ba /lib/ast.js
parentb0040ba6540232687204d125eff021adf11c4efa (diff)
downloadtracifyjs-551420132c357467a747cae12be39c2662ce56f1.tar.gz
tracifyjs-551420132c357467a747cae12be39c2662ce56f1.zip
export missing API for AST manipulation (#3707)
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ast.js b/lib/ast.js
index f2052350..99e2353e 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -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);
}
}));
}