summaryrefslogtreecommitdiff
path: root/test/parallel/test-vm-global-define-property.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-global-define-property.js
parenteb68a06a3e66cff0092fc26e79f06a25f8f1ac43 (diff)
downloadnode-new-db9c556f507ea2510a603ca526d6cd1e79cfac2d.tar.gz
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-global-define-property.js')
-rw-r--r--test/parallel/test-vm-global-define-property.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-vm-global-define-property.js b/test/parallel/test-vm-global-define-property.js
index 00bd210528..0b9a4dfb88 100644
--- a/test/parallel/test-vm-global-define-property.js
+++ b/test/parallel/test-vm-global-define-property.js
@@ -36,7 +36,7 @@ const code =
'f;\n';
const x = {};
-const o = vm.createContext({ console: console, x: x });
+const o = vm.createContext({ console, x });
const res = vm.runInContext(code, o, 'test');