mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
68626dc451
PR-URL: https://github.com/nodejs/node/pull/42305 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Darshan Sen <raisinten@gmail.com>
11 lines
349 B
JavaScript
11 lines
349 B
JavaScript
import '../common/index.mjs';
|
|
import assert from 'assert';
|
|
import ok from '../fixtures/es-modules/test-esm-ok.mjs';
|
|
import * as okShebangNs from './test-esm-shebang.mjs';
|
|
// encode the '.'
|
|
import * as okShebangPercentNs from './test-esm-shebang%2emjs';
|
|
|
|
assert(ok);
|
|
assert(okShebangNs.default);
|
|
assert.strict.equal(okShebangNs, okShebangPercentNs);
|