Skip to content

Implement AgentCanSuspend check for Atomics.wait#2364

Merged
lahma merged 1 commit into
sebastienros:mainfrom
lahma:agent-can-suspend
Mar 26, 2026
Merged

Implement AgentCanSuspend check for Atomics.wait#2364
lahma merged 1 commit into
sebastienros:mainfrom
lahma:agent-can-suspend

Conversation

@lahma

@lahma lahma commented Mar 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add Options.AgentCanSuspend property (default true) to control whether Atomics.wait() can block
  • Implement DoWait step 8: throw TypeError when AgentCanSuspend() is false
  • Configure test262 harness to set AgentCanSuspend = false for tests with CanBlockIsFalse flag
  • Remove CanBlockIsFalse from excluded flags — no new exclusions needed

Test plan

  • All 356 Atomics_wait tests pass (including 4 previously excluded CanBlockIsFalse tests)
  • Full test262 suite: 95,985 passed, 0 failures

🤖 Generated with Claude Code

Add Options.AgentCanSuspend property and enforce DoWait step 8: throw
TypeError when the agent cannot suspend. The test262 harness now
configures this per-test based on CanBlockIsFalse/CanBlockIsTrue flags,
removing the need for the CanBlockIsFalse exclusion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lahma
lahma enabled auto-merge (squash) March 26, 2026 05:49
@lahma
lahma merged commit 9dbd643 into sebastienros:main Mar 26, 2026
4 checks passed
@lahma
lahma deleted the agent-can-suspend branch March 26, 2026 05:55
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.

1 participant