diff options
Diffstat (limited to 'share/server/60/rewrite_fun.js')
-rw-r--r-- | share/server/60/rewrite_fun.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/server/60/rewrite_fun.js b/share/server/60/rewrite_fun.js index 1b27a9d14..436fd3da1 100644 --- a/share/server/60/rewrite_fun.js +++ b/share/server/60/rewrite_fun.js @@ -28,7 +28,7 @@ function rewriteFunInt(fun) { // If we have a function declaration without an Id, wrap it // in an ExpressionStatement and change it into - // a FuntionExpression + // a FunctionExpression if (decl.type == "FunctionDeclaration" && decl.id == null) { decl.type = "FunctionExpression"; ast.body[idx] = { @@ -41,7 +41,6 @@ function rewriteFunInt(fun) { return escodegen.generate(ast); } - function rewriteFun(funJSON) { const fun = JSON.parse(funJSON); return JSON.stringify(rewriteFunInt(fun)); @@ -53,4 +52,4 @@ function rewriteFuns(funsJSON) { return rewriteFunInt(fun); }); return JSON.stringify(results); -}
\ No newline at end of file +} |