From 0d48ffca2b92cc884b546a95b05a6798461005e9 Mon Sep 17 00:00:00 2001 From: David Majda Date: Thu, 1 Sep 2016 15:29:47 +0200 Subject: [PATCH] generated-parser-behavior.spec.js: s/==/===/ --- spec/behavior/generated-parser-behavior.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/behavior/generated-parser-behavior.spec.js b/spec/behavior/generated-parser-behavior.spec.js index 503dcca..fc746b4 100644 --- a/spec/behavior/generated-parser-behavior.spec.js +++ b/spec/behavior/generated-parser-behavior.spec.js @@ -1497,14 +1497,14 @@ describe("generated parser behavior", function() { 'Expr = Sum', 'Sum = first:Product rest:(("+" / "-") Product)* {', ' return rest.reduce(function(result, element) {', - ' if (element[0] == "+") { return result + element[1]; }', - ' if (element[0] == "-") { return result - element[1]; }', + ' if (element[0] === "+") { return result + element[1]; }', + ' if (element[0] === "-") { return result - element[1]; }', ' }, first);', ' }', 'Product = first:Value rest:(("*" / "/") Value)* {', ' return rest.reduce(function(result, element) {', - ' if (element[0] == "*") { return result * element[1]; }', - ' if (element[0] == "/") { return result / element[1]; }', + ' if (element[0] === "*") { return result * element[1]; }', + ' if (element[0] === "/") { return result / element[1]; }', ' }, first);', ' }', 'Value = digits:[0-9]+ { return parseInt(digits.join(""), 10); }',