Skip to content

Fix async test harness priority, await in computed properties, and forbidden extensions#2363

Merged
lahma merged 1 commit into
sebastienros:mainfrom
lahma:async-failure
Mar 26, 2026
Merged

Fix async test harness priority, await in computed properties, and forbidden extensions#2363
lahma merged 1 commit into
sebastienros:mainfrom
lahma:async-failure

Conversation

@lahma

@lahma lahma commented Mar 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Test262 harness: AsyncTestFailure marker now takes priority over AsyncTestComplete, fixing tests where $DONE(error) is followed by $DONE() in try/catch patterns
  • AstExtensions: Add AwaitExpression to computed property key evaluation allow-list, fixing [await expr] in object/class property names returning undefined
  • ScriptFunction: Exclude async functions from getting own .caller/.arguments properties per ECMAScript spec forbidden extensions

Fixes #2354

Test plan

  • 9 cpn-*-from-await-expression test262 tests now genuinely pass
  • 6 forbidden-ext async function tests now pass
  • Full test262 suite: 0 failures, 95981 passed
  • Full Jint.Tests suite: 0 failures

🤖 Generated with Claude Code

…d async function forbidden extensions

- Test262 harness: AsyncTestFailure marker now takes priority over AsyncTestComplete,
  fixing tests where $DONE(error) is followed by $DONE() in try/catch patterns
- AstExtensions: Add AwaitExpression to computed property key evaluation allow-list,
  fixing [await expr] in object/class property names returning undefined
- ScriptFunction: Exclude async functions from getting own .caller/.arguments properties,
  matching the ECMAScript spec for forbidden extensions

Fixes sebastienros#2354

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lahma
lahma enabled auto-merge (squash) March 26, 2026 05:29
@lahma
lahma merged commit 1494687 into sebastienros:main Mar 26, 2026
4 checks passed
@lahma
lahma deleted the async-failure branch March 26, 2026 05:33
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.

Jint.Tests.Test262 doesn't properly check async tests

1 participant