diff options
author | Rich Trott <rtrott@gmail.com> | 2015-12-26 22:08:08 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-01-05 08:59:58 -0800 |
commit | bc39d6a3a61e9217839f2cecf0aab8a2f2a96077 (patch) | |
tree | e277759be44cc92f20ae4c6fbd764efa5918101d /test/parallel/test-vm-new-script-new-context.js | |
parent | a497bb5d09f79f4593d545774c9262896d3bbcf2 (diff) | |
download | android-node-v8-bc39d6a3a61e9217839f2cecf0aab8a2f2a96077.tar.gz android-node-v8-bc39d6a3a61e9217839f2cecf0aab8a2f2a96077.tar.bz2 android-node-v8-bc39d6a3a61e9217839f2cecf0aab8a2f2a96077.zip |
test: remove unused vars
Remove unused vars in tests
PR-URL: https://github.com/nodejs/node/pull/4536
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-vm-new-script-new-context.js')
-rw-r--r-- | test/parallel/test-vm-new-script-new-context.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-vm-new-script-new-context.js b/test/parallel/test-vm-new-script-new-context.js index e3cc6e91cb..81f9b57593 100644 --- a/test/parallel/test-vm-new-script-new-context.js +++ b/test/parallel/test-vm-new-script-new-context.js @@ -21,7 +21,6 @@ assert.throws(function() { console.error('undefined reference'); -var error; script = new Script('foo.bar = 5;'); assert.throws(function() { script.runInNewContext(); @@ -41,7 +40,9 @@ code = 'foo = 1;' + foo = 2; obj = { foo: 0, baz: 3 }; script = new Script(code); +/* eslint-disable no-unused-vars */ var baz = script.runInNewContext(obj); +/* eslint-enable no-unused-vars */ assert.equal(1, obj.foo); assert.equal(2, obj.bar); assert.equal(2, foo); |