diff --git a/Sources/Fuzzilli/Compiler/Parser/parser.js b/Sources/Fuzzilli/Compiler/Parser/parser.js index 65316174..07c88691 100644 --- a/Sources/Fuzzilli/Compiler/Parser/parser.js +++ b/Sources/Fuzzilli/Compiler/Parser/parser.js @@ -335,7 +335,7 @@ function parse(script, proto) { case 'SwitchCase': { let switchCase = {}; if (node.test) {switchCase.test = visitExpression(node.test)} - switchCase.consequent = node.consequent.map(consequentNode => visitStatement(consequentNode)); + switchCase.consequent = node.consequent.map(visitStatement); return switchCase; } default: {