pegjs/lib/compiler
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
..
passes Don't use "objects" in lib/compiler/passes/report-duplicate-labels.js 2016-09-14 13:48:12 +02:00
asts.js Don't use "arrays" in lib/compiler/asts.js 2016-09-14 09:33:31 +02:00
index.js Get rid of for-in loops 2016-09-14 16:08:32 +02:00
js.js Replace some functions with arrow functions 2016-09-12 16:07:43 +02:00
opcodes.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
visitor.js Don't use "objects" in lib/compiler/visitor.js 2016-09-14 13:53:23 +02:00