summaryrefslogtreecommitdiff
path: root/lib/internal/vm
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2019-04-09 09:55:53 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-04-12 05:38:45 +0200
commit908292cf1f551c614a733d858528ffb13fb3a524 (patch)
tree5d3b3a020a6936203b36b82e77a970d8339966de /lib/internal/vm
parent9ad5106934a21416a2391890ea28bde8b42a6c60 (diff)
downloadandroid-node-v8-908292cf1f551c614a733d858528ffb13fb3a524.tar.gz
android-node-v8-908292cf1f551c614a733d858528ffb13fb3a524.tar.bz2
android-node-v8-908292cf1f551c614a733d858528ffb13fb3a524.zip
lib: enforce the use of Object from primordials
PR-URL: https://github.com/nodejs/node/pull/27146 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'lib/internal/vm')
-rw-r--r--lib/internal/vm/source_text_module.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/vm/source_text_module.js b/lib/internal/vm/source_text_module.js
index 6840b4281f..1c9e6da4c3 100644
--- a/lib/internal/vm/source_text_module.js
+++ b/lib/internal/vm/source_text_module.js
@@ -1,5 +1,7 @@
'use strict';
+const { Object, SafePromise } = primordials;
+
const { isModuleNamespaceObject } = require('util').types;
const { URL } = require('internal/url');
const { isContext } = internalBinding('contextify');
@@ -17,7 +19,6 @@ const {
customInspectSymbol,
emitExperimentalWarning
} = require('internal/util');
-const { SafePromise } = primordials;
const {
validateInt32,
validateUint32,