Skip to content

Explicit resource management support - #865

Closed
bnoordhuis wants to merge 2 commits into
quickjs-ng:masterfrom
bnoordhuis:explicit-resource-management
Closed

bnoordhuis wants to merge 2 commits into
quickjs-ng:masterfrom
bnoordhuis:explicit-resource-management

Conversation

@bnoordhuis

Copy link
Copy Markdown
Contributor

Refs: https://github.com/tc39/proposal-explicit-resource-management


Still very WIP. So far only parses the language constructs but hey, baby steps.

@bnoordhuis
bnoordhuis force-pushed the explicit-resource-management branch from 4341797 to 4c40418 Compare January 31, 2025 22:43
Allows including test/staging/explicit-resource-management while still
excluding everything else from test/staging in test262.conf. Example:

    [exclude]
    test/staging/
    !test/staging/explicit-resource-management/
@bnoordhuis
bnoordhuis force-pushed the explicit-resource-management branch from 4c40418 to 258a53a Compare February 6, 2025 21:15
saghul added a commit that referenced this pull request Apr 22, 2026
Co-authored-by: Ben Noordhuis <[email protected]>

Closes: #865
saghul added a commit that referenced this pull request Apr 22, 2026
Co-authored-by: Ben Noordhuis <[email protected]>

Closes: #865
saghul added a commit that referenced this pull request May 16, 2026
Co-authored-by: Ben Noordhuis <[email protected]>

Closes: #865
@saghul saghul closed this in #1458 May 16, 2026
pull Bot pushed a commit to jnnycn007/quickjs that referenced this pull request May 16, 2026
richarddd added a commit to DelSkayn/rquickjs that referenced this pull request May 19, 2026
quickjs-ng/quickjs#865 ("Implement explicit resource management") added
new atoms — `using`, `error`, `suppressed`, `<using_dispose>`, `use`,
`dispose`, `disposeAsync`, `DisposableStack`, `AsyncDisposableStack`,
`SuppressedError`, `Symbol.dispose`, `Symbol.asyncDispose` — into the C
`JS_ATOM_*` enum. New entries shifted the numeric values of existing
atoms (`JS_ATOM_toString` moved from 56 to 59, etc.), so the previously
committed bindings pointed every `PredefinedAtom` lookup at the wrong
slot, surfacing as `a.toString is not a function` in the class-methods
example and any other code that registered methods via PredefinedAtom.

Regenerated bindings for all targets reachable from this host
(native macOS + cargo-zigbuild for Linux/wasm). The two
`*-pc-windows-msvc` targets remain stale here; the CI test matrix's
update-bindings step regenerates them on Windows runners.
mochaaP pushed a commit to mcha-forks/quickjs that referenced this pull request May 20, 2026
Co-authored-by: Ben Noordhuis <[email protected]>

Closes: quickjs-ng#865
(cherry picked from commit 440883b)
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