pokemon-showdown/test/simulator/moves
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
..
belch.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
boomburst.js
bugbuzz.js
chatter.js
curse.js Refactor for more ES6 features 2016-02-10 17:40:21 -06:00
disable.js
echoedvoice.js
electricterrain.js
embargo.js
focuspunch.js Fix Focus Punch bugs 2016-01-27 16:15:50 -08:00
followme.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
foresight.js
glare.js
grassyterrain.js
gravity.js
haze.js
healblock.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
hypervoice.js
imprison.js
ingrain.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
knockoff.js
magicroom.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
miracleeye.js
mistyterrain.js
quash.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
ragepowder.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
relicsong.js
rollout.js
roost.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
round.js
skydrop.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
smellingsalts.js
snarl.js
stealthrock.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
substitute.js
taunt.js
thief.js
thousandarrows.js
thunderwave.js
transform.js Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
trickroom.js Fix Natural Cure message 2016-01-12 02:28:43 -08:00
uproar.js