pegjs/spec/unit/compiler/passes
David Majda 7f01db2fb8 Get rid of for-in loops
The for-in statement in JavaScript iterates also over inherited
properties. This is typically not desired and requires adding a
check using Object.prototype.hasOwnProperty inside the loop.

This commit replaces all for-in statements and related checks inside
them with iteration over Object.keys(...). The iteration is performed
using either Array.prototype.forEach of a plain for loop.
2016-09-14 16:08:32 +02:00
..
generate-bytecode.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
helpers.js Get rid of for-in loops 2016-09-14 16:08:32 +02:00
remove-proxy-rules.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
report-duplicate-labels.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
report-duplicate-rules.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
report-infinite-recursion.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
report-infinite-repetition.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
report-undefined-rules.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00