Skip to content

Conversation

karlseguin
Copy link

support for ES2020 arbitrary module namespace identifier names, which allows using string literals as export/import names.

Examples:

export { foo as "string-name" }
import { "string-name" as foo }
export * as "string-name" from "./mod.js"

See https://tc39.es/ecma262/#prod-ModuleExportName

support for ES2020 arbitrary module namespace identifier names, which allows
using string literals as export/import names.

Examples:

```js
export { foo as "string-name" }
import { "string-name" as foo }
export * as "string-name" from "./mod.js"
```
@saghul
Copy link
Contributor

saghul commented Oct 12, 2025

Nice! Do you know if test262 covers this? Great that you added a test btw!

@karlseguin
Copy link
Author

Yes, I believe they're all under the arbitrary-module-namespace-names feature, which is being skipepd (if I'm following correctly). This PR doesn't make them all pass, just some.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants