diff --git a/lib/parse-js.js b/lib/parse-js.js index e6996da0..7b085701 100644 --- a/lib/parse-js.js +++ b/lib/parse-js.js @@ -1505,7 +1505,7 @@ function gen_code(ast, beautify) { "new": function(ctor, args) { args = args.length > 0 ? "(" + add_commas(MAP(args, make)) + ")" : ""; return add_spaces([ "new", parenthesize(ctor, "seq", "binary", "conditional", "assign", function(expr){ - var w = walker(), has_call = {}; + var w = ast_walker(), has_call = {}; try { w.with_walkers({ "call": function() { throw has_call },