Skip to content

Commit e0b5027

Browse files
test: record the host divergences a Script's this now exposes
Six files asserted about the realm's global object and passed only because top-level `this` was the exports object, where nothing is ever defined. Each fails identically unbundled in a plain `vm`, so they join the host lists that tolerate the failure rather than skip the test. Claude-Session: https://claude.ai/code/session_01US4dVfYJHHfNwvLNveDxAF
1 parent fe2c312 commit e0b5027

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎test/specCases/test262.spectest.js‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,13 @@ const knownHostEvalBugs = [
132132
"eval-code/direct/var-env-func-init-global-update-configurable.js",
133133
"eval-code/direct/var-env-var-init-global-exstng.js",
134134
"eval-code/indirect/var-env-func-init-global-update-configurable.js",
135-
"eval-code/indirect/var-env-var-init-global-exstng.js"
135+
"eval-code/indirect/var-env-var-init-global-exstng.js",
136+
// and it lets `function NaN(){}` be declared, so the eval's declarations are
137+
// not abandoned and the `var` beside it reaches the global after all
138+
"eval-code/direct/non-definable-function-with-function.js",
139+
"eval-code/direct/non-definable-function-with-variable.js",
140+
"eval-code/indirect/non-definable-function-with-function.js",
141+
"eval-code/indirect/non-definable-function-with-variable.js"
136142
];
137143
/* cspell:enable */
138144

@@ -229,7 +235,12 @@ const knownHostBugs = [
229235
"statements/with/unscopables-inc-dec.js",
230236
// `super[x]` must read the this binding before evaluating `x`, so the
231237
// `super()` in the index of a `delete` must not run. V8 evaluates it.
232-
"expressions/delete/super-property-uninitialized-this.js"
238+
"expressions/delete/super-property-uninitialized-this.js",
239+
// A `vm` contextified global refuses `Object.preventExtensions`.
240+
"global-code/script-decl-lex.js",
241+
// The store to an unresolvable name must throw before its right side
242+
// creates that name. V8 resolves it afterwards and finds it.
243+
"identifier-resolution/assign-to-global-undefined.js"
233244
];
234245
/* cspell:enable */
235246

0 commit comments

Comments
 (0)