summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-05-08 12:24:02 +0200
committerAnna Henningsen <anna@addaleax.net>2018-05-09 19:10:01 +0200
commitfacb2c53c2bb98d14a2f94844ceaacfc4c606e68 (patch)
treeaa1541c8d8cb402bcad3335892f501bde1ddfb5b
parent5bb5d61cdd76f816c0af3cda5b610f5c34f41023 (diff)
downloadandroid-node-v8-facb2c53c2bb98d14a2f94844ceaacfc4c606e68.tar.gz
android-node-v8-facb2c53c2bb98d14a2f94844ceaacfc4c606e68.tar.bz2
android-node-v8-facb2c53c2bb98d14a2f94844ceaacfc4c606e68.zip
vm: move emitExperimentalWarning
This commit moves emitExperimentalWarning into the second object destructoring of require internal/util. PR-URL: https://github.com/nodejs/node/pull/20593 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
-rw-r--r--lib/internal/vm/module.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/vm/module.js b/lib/internal/vm/module.js
index 9e945c45c3..5c8cc27c60 100644
--- a/lib/internal/vm/module.js
+++ b/lib/internal/vm/module.js
@@ -1,7 +1,6 @@
'use strict';
const { internalBinding } = require('internal/bootstrap/loaders');
-const { emitExperimentalWarning } = require('internal/util');
const { URL } = require('internal/url');
const { isContext } = process.binding('contextify');
const {
@@ -16,6 +15,7 @@ const {
const {
getConstructorOf,
customInspectSymbol,
+ emitExperimentalWarning
} = require('internal/util');
const { SafePromise } = require('internal/safe_globals');
const { validateInt32, validateUint32 } = require('internal/validators');