From facb2c53c2bb98d14a2f94844ceaacfc4c606e68 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 8 May 2018 12:24:02 +0200 Subject: [PATCH] vm: move emitExperimentalWarning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Gus Caplan Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Jon Moss Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Anna Henningsen --- lib/internal/vm/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/vm/module.js b/lib/internal/vm/module.js index 9e945c45c3de8a..5c8cc27c6042d8 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');