aboutsummaryrefslogtreecommitdiff
path: root/test/es-module/test-esm-snapshot.mjs
diff options
context:
space:
mode:
authorWhoMeNope <toman.martin@live.com>2017-10-17 20:34:27 +0200
committerAnna Henningsen <anna@addaleax.net>2017-11-28 03:01:52 +0100
commit8075d82ecf0677c52dfc246a4f888a1f46239a48 (patch)
tree97acb6b17c83ac5bfc8c9b458625604d937d7a00 /test/es-module/test-esm-snapshot.mjs
parentf31cf569721e64486ac1593479fe73aadebf1883 (diff)
downloadandroid-node-v8-8075d82ecf0677c52dfc246a4f888a1f46239a48.tar.gz
android-node-v8-8075d82ecf0677c52dfc246a4f888a1f46239a48.tar.bz2
android-node-v8-8075d82ecf0677c52dfc246a4f888a1f46239a48.zip
test: add es6 module global leakage tests
* created testing es6 module for global leakage tests * fixed a couple basic errors (vars -> lets, ...) * added globals leakage detection to es module tests * reversed whitespace change * whitespace change reversed PR-URL: https://github.com/nodejs/node/pull/16341 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/es-module/test-esm-snapshot.mjs')
-rw-r--r--test/es-module/test-esm-snapshot.mjs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/es-module/test-esm-snapshot.mjs b/test/es-module/test-esm-snapshot.mjs
index 89034f5668..878be79a34 100644
--- a/test/es-module/test-esm-snapshot.mjs
+++ b/test/es-module/test-esm-snapshot.mjs
@@ -1,5 +1,6 @@
// Flags: --experimental-modules
/* eslint-disable required-modules */
+import '../common/index';
import './esm-snapshot-mutator';
import one from './esm-snapshot';
import assert from 'assert';