bdf91b5941
This is purely a mechanical change, not taking advantage of block scope of "let" and "const". Minimizing variable scope will come in the next commit. In general, "var" is converted into "let" and "const" is used only for immutable variables of permanent character (generally spelled in ALL_CAPS). Using it for any immutable variable regardless on its permanence would feel confusing. Any code which is not transpiled and needs to run in ES6 environment (examples, code in grammars embedded in specs, ...) is kept unchanged. This is also true for code generated by PEG.js. See #442. |
||
---|---|---|
.. | ||
generate-bytecode.spec.js | ||
helpers.js | ||
remove-proxy-rules.spec.js | ||
report-duplicate-labels.spec.js | ||
report-duplicate-rules.spec.js | ||
report-infinite-recursion.spec.js | ||
report-infinite-repetition.spec.js | ||
report-undefined-rules.spec.js |