summaryrefslogtreecommitdiff
path: root/test/parallel/test-vm-timeout.js
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-01-11 19:03:58 +0100
committerTobias Nießen <tniessen@tnie.de>2018-01-17 14:33:20 +0100
commitdb9c556f507ea2510a603ca526d6cd1e79cfac2d (patch)
treeec67658e93477830b3a2ca5df20dd9b4be4bf703 /test/parallel/test-vm-timeout.js
parenteb68a06a3e66cff0092fc26e79f06a25f8f1ac43 (diff)
downloadandroid-node-v8-db9c556f507ea2510a603ca526d6cd1e79cfac2d.tar.gz
android-node-v8-db9c556f507ea2510a603ca526d6cd1e79cfac2d.tar.bz2
android-node-v8-db9c556f507ea2510a603ca526d6cd1e79cfac2d.zip
test: use shorthand properties
PR-URL: https://github.com/nodejs/node/pull/18105 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-vm-timeout.js')
-rw-r--r--test/parallel/test-vm-timeout.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-vm-timeout.js b/test/parallel/test-vm-timeout.js
index a53883bef7..51239ffed5 100644
--- a/test/parallel/test-vm-timeout.js
+++ b/test/parallel/test-vm-timeout.js
@@ -47,7 +47,7 @@ assert.throws(function() {
const context = {
log: console.log,
runInVM: function(timeout) {
- vm.runInNewContext('while(true) {}', context, { timeout: timeout });
+ vm.runInNewContext('while(true) {}', context, { timeout });
}
};
vm.runInNewContext('runInVM(10)', context, { timeout: 10000 });
@@ -58,7 +58,7 @@ assert.throws(function() {
assert.throws(function() {
const context = {
runInVM: function(timeout) {
- vm.runInNewContext('while(true) {}', context, { timeout: timeout });
+ vm.runInNewContext('while(true) {}', context, { timeout });
}
};
vm.runInNewContext('runInVM(10000)', context, { timeout: 100 });
@@ -69,9 +69,7 @@ assert.throws(function() {
assert.throws(function() {
const context = {
runInVM: function(timeout) {
- vm.runInNewContext('throw new Error(\'foobar\')', context, {
- timeout: timeout
- });
+ vm.runInNewContext('throw new Error(\'foobar\')', context, { timeout });
}
};
vm.runInNewContext('runInVM(10000)', context, { timeout: 100000 });