@@ -132,15 +132,12 @@ const knownHostEvalBugs = [
132132] ;
133133/* cspell:enable */
134134
135- // A specifier that names no module: `import()` stringifies whatever it is
136- // handed, so `import(import(...))` asks for "[object Promise]" and
137- // `import(typeof x)` for "object". Rejecting is what the spec requires.
135+ // `import()` stringifies its argument, so these ask for a name nothing
136+ // resolves ("[object Promise]", "object") and reject, as the spec requires.
138137const UNRESOLVED_SPECIFIER = / C a n n o t f i n d m o d u l e / ;
139138
140- // These abandon a rejected promise on purpose — an async body nothing awaits,
141- // a short-circuited optional chain, an `import()` of a name nothing resolves.
142- // jest records it against the running test, so the count and reason are
143- // asserted and cleared below the way `rejectionHandled` would.
139+ // These abandon a rejected promise on purpose. jest blames the running test,
140+ // so the count and reason are asserted and cleared below.
144141const expectedAbandonedRejections = new Map ( [
145142 [
146143 "statements/async-function/evaluation-body.js" ,
@@ -588,10 +585,8 @@ const compile = async (entry, scenario, options = {}) =>
588585 entry,
589586 context : path . dirname ( entry ) ,
590587 output : {
591- // A Cyclic Module Record keeps its [[EvaluationError]] forever, so
592- // re-importing a module that threw re-throws instead of re-running
593- // it. webpack leaves this off by default for CommonJS's sake, so the
594- // suite opts in to measure the spec-conformant output.
588+ // A Cyclic Module Record keeps its [[EvaluationError]] forever. Off
589+ // by default for CommonJS's sake, so the suite opts in.
595590 strictModuleErrorHandling : true ,
596591 ...webpackOptions . output ,
597592 ...( scenario === "module" ? { module : true } : { iife : false } )
@@ -854,8 +849,7 @@ const knownBugs = [
854849 // `await` does, so the Script-goal early error is not raised.
855850 "statements/await-using/syntax/await-using-not-allowed-at-top-level-of-script.js" ,
856851 // `#mark in obj` needs `isExtensible() === false` without evaluating, so the
857- // target must be sealed with every export name already on it — the names
858- // emitted per deferred import, and a mismatch would silently lose a key.
852+ // target must be sealed with every export name on it, and a mismatch loses one.
859853 "import/import-defer/evaluation-triggers/ignore-private-name-access.js" ,
860854 // Host resolution errors must be reported eagerly even for deferred imports;
861855 // webpack turns a missing module into a build error resolved lazily instead.
@@ -872,15 +866,11 @@ const knownBugs = [
872866 // A deferred module must wait for the whole strongly-connected component when a
873867 // dependency's cycle root is still evaluating-async (`IsModuleSCCEvaluated`).
874868 "import/import-defer/evaluation-top-level-await/async-cycle-dependency-of-deferred-module/main.js" ,
875- // Just bugs, need to fix
876- // Extensibility is only its first assertion: it also wants `ownKeys` to be
877- // the sorted exports plus `@@toStringTag`, so `__esModule` would have to go.
878- // That is the namespace-object trade-off, not a defer-local fix.
869+ // It also wants `ownKeys` to be the sorted exports plus `@@toStringTag`, so
870+ // `__esModule` would have to go — the namespace trade-off, not a defer fix.
879871 "import/import-defer/deferred-namespace-object/exotic-object-behavior.js" ,
880- // The assignment is now a build error, which is earlier than the spec's
881- // runtime TypeError, so this test cannot observe the throw. It stays a
882- // `var` because a runtime-condition import must be function-scoped and HMR
883- // accept reassigns it, so `const` is not available to make the write throw.
872+ // Reported as a build error, earlier than the spec's runtime TypeError: the
873+ // binding stays a `var`, which a runtime condition and HMR accept both need.
884874 "module-code/instn-star-binding.js" ,
885875 // Improvement- bug with `delete` and `ns[0] = something` when using `import * as ns from "...";`
886876 "module-code/export-expname-binding-index.js" ,
@@ -1044,13 +1034,9 @@ const knownBugs = [
10441034] ;
10451035
10461036const knownProductionBuildBugs = [
1047- // Deliberate: the inner graph reads a class heritage and an unused export's
1048- // value as pure, so a `prototype` getter and a `ReferenceError` on a free
1049- // name are not seen. Both only fire where the class or the export is
1050- // unused — used, the heritage and the expression are emitted and observe
1051- // the same as the spec, and development mode observes it either way.
1052- // Tree-shaking an imported base class out of an unused class is the whole
1053- // point of the first, which `configCases/inner-graph/issue-17565` pins.
1037+ // Deliberate: the inner graph reads an unused class heritage and an unused
1038+ // export's value as pure, which `configCases/inner-graph/issue-17565` pins.
1039+ // Used, both are emitted and observe the same as the spec, as does development.
10541040 "statements/class/definition/prototype-getter.js" ,
10551041 "module-code/eval-export-dflt-expr-err-get-value.js"
10561042] ;
0 commit comments