diff options
author | Rich Trott <rtrott@gmail.com> | 2017-04-27 17:27:05 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-05-01 15:56:58 -0700 |
commit | a180259e428fbc3e220abdceb74d941482b87d40 (patch) | |
tree | 03377e9542c521963dbf6708b6b829899a7abaf7 /test/parallel/test-event-emitter-once.js | |
parent | dd20e68b0feb966c2a7439c947bbb4d46e3b19fe (diff) | |
download | android-node-v8-a180259e428fbc3e220abdceb74d941482b87d40.tar.gz android-node-v8-a180259e428fbc3e220abdceb74d941482b87d40.tar.bz2 android-node-v8-a180259e428fbc3e220abdceb74d941482b87d40.zip |
test,lib,doc: use function declarations
Replace function expressions with function declarations in preparation
for a lint rule requiring function declarations.
PR-URL: https://github.com/nodejs/node/pull/12711
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/parallel/test-event-emitter-once.js')
-rw-r--r-- | test/parallel/test-event-emitter-once.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-event-emitter-once.js b/test/parallel/test-event-emitter-once.js index 8a7bbbf9bc..6823a9805e 100644 --- a/test/parallel/test-event-emitter-once.js +++ b/test/parallel/test-event-emitter-once.js @@ -33,9 +33,9 @@ e.emit('hello', 'a', 'b'); e.emit('hello', 'a', 'b'); e.emit('hello', 'a', 'b'); -const remove = function() { +function remove() { assert.fail('once->foo should not be emitted'); -}; +} e.once('foo', remove); e.removeListener('foo', remove); |