diff options
author | Rich Trott <rtrott@gmail.com> | 2016-02-19 17:03:16 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-02-22 11:09:26 -0800 |
commit | 4bb529d972afaa02d57a2ca29db33ac92f69b81d (patch) | |
tree | 362545fa9b9565b72d128b5ed0c9fd86c326633e /benchmark/events | |
parent | 65cd2a0f9689b1213bb13a8d48f38d8b9e4ff09f (diff) | |
download | node-new-4bb529d972afaa02d57a2ca29db33ac92f69b81d.tar.gz |
benchmark: use strict mode
Apply strict mode to benchmark code.
PR-URL: https://github.com/nodejs/node/pull/5336
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'benchmark/events')
-rw-r--r-- | benchmark/events/ee-add-remove.js | 1 | ||||
-rw-r--r-- | benchmark/events/ee-emit-multi-args.js | 1 | ||||
-rw-r--r-- | benchmark/events/ee-emit.js | 1 | ||||
-rw-r--r-- | benchmark/events/ee-listener-count-on-prototype.js | 1 | ||||
-rw-r--r-- | benchmark/events/ee-listeners-many.js | 1 | ||||
-rw-r--r-- | benchmark/events/ee-listeners.js | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/events/ee-add-remove.js b/benchmark/events/ee-add-remove.js index cd9fe3cb7d..1d8f2a8bae 100644 --- a/benchmark/events/ee-add-remove.js +++ b/benchmark/events/ee-add-remove.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common.js'); var events = require('events'); diff --git a/benchmark/events/ee-emit-multi-args.js b/benchmark/events/ee-emit-multi-args.js index 78a892d457..7416915db1 100644 --- a/benchmark/events/ee-emit-multi-args.js +++ b/benchmark/events/ee-emit-multi-args.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common.js'); var EventEmitter = require('events').EventEmitter; diff --git a/benchmark/events/ee-emit.js b/benchmark/events/ee-emit.js index 4c45bd9b71..87772222f0 100644 --- a/benchmark/events/ee-emit.js +++ b/benchmark/events/ee-emit.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common.js'); var EventEmitter = require('events').EventEmitter; diff --git a/benchmark/events/ee-listener-count-on-prototype.js b/benchmark/events/ee-listener-count-on-prototype.js index 8d536edd62..9fb060a6a1 100644 --- a/benchmark/events/ee-listener-count-on-prototype.js +++ b/benchmark/events/ee-listener-count-on-prototype.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common.js'); var EventEmitter = require('events').EventEmitter; diff --git a/benchmark/events/ee-listeners-many.js b/benchmark/events/ee-listeners-many.js index 32721b32e5..6ea838286c 100644 --- a/benchmark/events/ee-listeners-many.js +++ b/benchmark/events/ee-listeners-many.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common.js'); var EventEmitter = require('events').EventEmitter; diff --git a/benchmark/events/ee-listeners.js b/benchmark/events/ee-listeners.js index 68339bc3ec..05b400662c 100644 --- a/benchmark/events/ee-listeners.js +++ b/benchmark/events/ee-listeners.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common.js'); var EventEmitter = require('events').EventEmitter; |