Skip to content
Snippets Groups Projects
Commit 8c38238e authored by Thomas Wood's avatar Thomas Wood
Browse files

esprima-to-ast: Use correct funcbody translation function for function expressions

parent 495f86ca
No related branches found
No related tags found
No related merge requests found
...@@ -357,7 +357,7 @@ function esprimaToAST(prog) { ...@@ -357,7 +357,7 @@ function esprimaToAST(prog) {
r.tag = "Coq_expr_function"; r.tag = "Coq_expr_function";
r.func_name_opt = toOption(id, expr.id); r.func_name_opt = toOption(id, expr.id);
r.arg_names = toList(expr.params.map(trPattern)); r.arg_names = toList(expr.params.map(trPattern));
r.body = trBlockStat(expr.body); r.body = trBlockStatAsFuncbody(expr.body);
// TODO: USE STRICT // TODO: USE STRICT
} else if (expr.type === "SequenceExpression") { } else if (expr.type === "SequenceExpression") {
r = expr.expressions.map(trExpr).reduce(function (previousValue, currentValue) { r = expr.expressions.map(trExpr).reduce(function (previousValue, currentValue) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment