summaryrefslogtreecommitdiff
path: root/test/parallel/test-vm-proxies.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-proxies.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-proxies.js')
-rw-r--r--test/parallel/test-vm-proxies.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-vm-proxies.js b/test/parallel/test-vm-proxies.js
index 266b212fb8..405f730577 100644
--- a/test/parallel/test-vm-proxies.js
+++ b/test/parallel/test-vm-proxies.js
@@ -12,7 +12,7 @@ assert.strictEqual(typeof sandbox.Proxy, 'function');
assert.notStrictEqual(sandbox.Proxy, Proxy);
// Unless we copy the Proxy object explicitly, of course.
-sandbox = { Proxy: Proxy };
+sandbox = { Proxy };
vm.runInNewContext('this.Proxy = Proxy', sandbox);
assert.strictEqual(typeof sandbox.Proxy, 'function');
assert.strictEqual(sandbox.Proxy, Proxy);