ladybird/Userland/Libraries/LibJS/Tests/modules/indirect-export-without-default.mjs
davidot e0e4ead2c8 LibJS: Follow the spec with storing im- and export entries
Because we can have arbitrary in- and export names with strings we can
have '*' and '' which means using '*' as an indicating namespace imports
failed / behaved incorrectly for string imports '*'.
We now use more specific types to indicate these special states instead
of these 'magic' string values.

Do note that 'default' is not actually a magic string value but one
specified by the spec. And you can in fact export the default value by
doing: `export { 1 as default }`.
2022-01-30 17:40:20 +00:00

3 lines
239 B
JavaScript

// Since 'default-and-star-export-indirect.mjs' only contains an all-but-default re export of
// 'default-and-star-export.mjs' it should not have a default value.
import defaultExportIndirect from "./default-and-star-export-indirect.mjs";