pokemon-showdown/test/simulator/abilities
Guangcong Luo b665660608 Refactor for more ES6 features
Now that nodejs/node#3072 is mostly fixed, we can finally start using
Node 4+ features.

This refactor:

- uses arrow functions where appropriate

  Note that arrow functions still aren't used in Mocha, where `this`
  is sometimes meaningful.

  This also removes the need for .bind() nearly everywhere, as well
  as the `self = this` trick.

- refactors Validator and Connection into ES6 classes

- no longer uses Array#forEach for iterating arrays

  We strongly prefer for (let i = 0; i < arr.length; i++) because of
  performance reasons. Most forEaches have been replaced with for..of,
  though, which is 5x slower than the long-form loop but 2x faster
  than forEach, which is good enough outside of most inner loops.

  The only exception is tournaments, which is due for a more invasive
  refactor soon anyway.
2016-02-10 17:40:21 -06:00
..
arenatrap.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
battlearmor.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
clearbody.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
cloudnine.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
colorchange.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
contrary.js Style fixes 2015-11-07 17:08:09 -05:00
damp.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
deltastream.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
desolateland.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
dryskin.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
flashfire.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
flowergift.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
immunity.js Refactor for more ES6 features 2016-02-10 17:40:21 -06:00
intimidate.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
klutz.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
levitate.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
lightningrod.js Fix Lightning Rod redirection priority 2016-01-13 00:13:55 -08:00
magicbounce.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
magicguard.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
magnetpull.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
multiscale.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
pickup.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
pressure.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
primordialsea.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
rockhead.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
shadowtag.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
sheerforce.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
shellarmor.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
shielddust.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
simple.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
stickyhold.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
stormdrain.js Fix old pullreq for modern code style 2016-01-04 23:13:43 -06:00
sturdy.js Style fixes 2015-11-07 17:08:09 -05:00
suctioncups.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
thickfat.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
unaware.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
unburden.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00
wonderguard.js Use strict mode and let and const instead of var 2015-11-06 21:56:52 -05:00