pegjs/spec/unit/compiler/passes
David Majda 6fa8ad63f9 Replace some functions with arrow functions
Because arrow functions work rather differently than normal functions (a
bad design mistake if you ask me), I decided to be conservative with the
conversion.

I converted:

  * event handlers
  * callbacks
  * arguments to Array.prototype.map & co.
  * small standalone lambda functions

I didn't convert:

  * functions assigned to object literal properties (the new shorthand
    syntax would be better here)
  * functions passed to "describe", "it", etc. in specs (because Jasmine
    relies on dynamic "this")

See #442.
2016-09-12 16:07:43 +02:00
..
generate-bytecode.spec.js Replace "var" with "let" & "const" 2016-09-09 10:44:00 +02:00
helpers.js Replace some functions with arrow functions 2016-09-12 16:07:43 +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