mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
54746bb763
This unflags Top-Level await so it can be used by default in the module goal. This is accomplished by manually setting the --harmony-top-level-await flag. We are allowing this as a one of approval based on circumstances. It is not a precedent that future harmony features will be manually enabled. Refs: https://github.com/nodejs/node/issues/34551 PR-URL: https://github.com/nodejs/node/pull/34558 Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
10 lines
326 B
JavaScript
10 lines
326 B
JavaScript
import '../common/index.mjs';
|
|
import fixtures from '../common/fixtures.js';
|
|
import assert from 'assert';
|
|
import { pathToFileURL } from 'url';
|
|
|
|
import(pathToFileURL(fixtures.path('/es-modules/tla/parent.mjs')))
|
|
.then(({ default: order }) => {
|
|
assert.deepStrictEqual(order, ['order', 'b', 'c', 'd', 'a', 'parent']);
|
|
});
|