Repository navigation
Commit 57de004
committed
fix(defer): give a deferred namespace the spec's exotic shape
A Module Namespace Exotic Object is not extensible, its keys are the sorted
exports followed by @@toStringTag, and each export reads back as a
non-configurable writable data property. The deferred namespace proxy left
its target extensible, so `[[IsExtensible]]` was true, `ownKeys` reported
`__esModule`, and a descriptor came back as the getter webpack backs the
export with.
The export names are known at build time, so they are handed to the runtime,
which puts them on the target and seals it. Only a real ES module namespace
takes this path: a synthesized one (JSON, asset, CommonJS interop) keeps the
previous shape, including `__esModule`.
Un-skips test262's deferred-namespace-object/exotic-object-behavior.
ignore-private-name-access moves to the host list: it needs
`nonextensible-applies-to-private`, which the pinned Node.js does not
implement, so it fails the same way unbundled.1 parent e507e93 commit 57de004
4 files changed
Lines changed: 276 additions & 220 deletions
File tree
- .changeset
- lib
- runtime
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
444 | 464 | | |
445 | 465 | | |
446 | 466 | | |
| |||
1991 | 2011 | | |
1992 | 2012 | | |
1993 | 2013 | | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
1994 | 2023 | | |
1995 | 2024 | | |
1996 | 2025 | | |
| |||
2468 | 2497 | | |
2469 | 2498 | | |
2470 | 2499 | | |
2471 | | - | |
2472 | | - | |
2473 | | - | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2474 | 2504 | | |
2475 | 2505 | | |
2476 | 2506 | | |
| |||
0 commit comments