tc39 / test262

Official ECMAScript Conformance Test Suite
Other
2.3k stars 457 forks source link

[explicit-resource-management] Add await using to the bytecode generator #4145

Closed test262-pr-bot closed 14 hours ago

test262-pr-bot commented 1 month ago

This CL adds subtypes (SyncJSDisposableStack and AsyncDisposableStack) to JSDisposableStack as well as await using to the bytecode generator. Currently async generators are broken and the fix is left as a TODO in this CL. Also, exception handling (promise rejections) will be completed in a follow up CL.

Bug: 42203814 Change-Id: I303a380b57fb4ab4662e4f55fb4dc9b14d18cd2a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5569647 Reviewed-by: Shu-yu Guo \syg@chromium.org Commit-Queue: Rezvan Mahdavi Hezaveh \rezvan@chromium.org Cr-Commit-Position: refs/heads/main@{#94944}