Skip to content

Commit

Permalink
refactor: simplify switch case consequent mapping in parser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasWienand committed Aug 13, 2024
1 parent 1f85a88 commit 1fb1fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Fuzzilli/Compiler/Parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 1fb1fe5

Please sign in to comment.