Skip to content

Missing cli flag to control CanBlock in run-test262 #1431

Closed

Description

@ivankra

The two CanBlockIsFalse tests from test262 aren't reproducible using run-test262 -N as there's no way to control [[CanBlock]] property via a command-line flag:

test/built-ins/Atomics/wait/bigint/cannot-suspend-throws.js: Test262Error: Expected a TypeError to be thrown but no exception was thrown at all
test/built-ins/Atomics/wait/cannot-suspend-throws.js: Test262Error: Expected a TypeError to be thrown but no exception was thrown at all

d8 has --no-can-block flag - I'd like to have an equivalent in run-test262 for its -N mode.

(Also in quickjs: bellard/quickjs#501)

Activity

  1. saghul commented on Mar 30, 2026

    @saghul
    Contributor

    Sounds good, would you like to send a PR?

  2. ivankra commented on Mar 30, 2026

    @ivankra
    ContributorAuthor

    Sure, it's a simple change.

  3. added a commit that references this issue on Mar 30, 2026
    ae6a532
  4. added a commit that references this issue on Apr 2, 2026
    4163d13
  5. added a commit that references this issue on May 20, 2026
    dc482d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions