summaryrefslogtreecommitdiff
path: root/test/es-module
diff options
context:
space:
mode:
authorJacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>2022-09-19 22:55:09 +0200
committerGitHub <noreply@github.com>2022-09-19 20:55:09 +0000
commite2e5b2eaf14b542cd3ee18022ec77c640c018cbd (patch)
tree2409d35626d27db32abb26620bf2e3b1fc514c18 /test/es-module
parente62e99d9832d90128efb0f65f2d693aaa82f8cb7 (diff)
downloadnode-new-e2e5b2eaf14b542cd3ee18022ec77c640c018cbd.tar.gz
esm,loader: tidy ESMLoader internals
PR-URL: https://github.com/nodejs/node/pull/44701 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'test/es-module')
-rw-r--r--test/es-module/test-esm-loader-hooks.mjs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/es-module/test-esm-loader-hooks.mjs b/test/es-module/test-esm-loader-hooks.mjs
index d314a4d9aa..2704fe1a52 100644
--- a/test/es-module/test-esm-loader-hooks.mjs
+++ b/test/es-module/test-esm-loader-hooks.mjs
@@ -12,10 +12,10 @@ const { ESMLoader } = esmLoaderModule;
const esmLoader = new ESMLoader();
const originalSpecifier = 'foo/bar';
- const importAssertions = Object.assign(
- Object.create(null),
- { type: 'json' },
- );
+ const importAssertions = {
+ __proto__: null,
+ type: 'json',
+ };
const parentURL = 'file:///entrypoint.js';
const resolvedURL = 'file:///foo/bar.js';
const suggestedFormat = 'test';