Skip to content

Fix asyncArrayBufferBorrowNativeBackedTest unconditional skip on Hermes#57212

Closed
christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D108657073
Closed

Fix asyncArrayBufferBorrowNativeBackedTest unconditional skip on Hermes#57212
christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D108657073

Conversation

@christophpurrer

Copy link
Copy Markdown
Contributor

Summary:

Changelog:

[General][Fixed] Fix asyncArrayBufferBorrowNativeBackedTest unconditional skip on Hermes

On runtimes that don't implement tryGetMutableBuffer (e.g. Hermes / Android-32bit), asyncArrayBufferBorrowNativeBackedTest always called GTEST_SKIP(), which surfaced as a perpetually-skipped test in CI.

Replace the skip with EXPECT_JSI_THROW(AsyncArrayBuffer::borrow(...)). On runtimes without tryGetMutableBuffer, borrow is documented to throw because there is no native MutableBuffer to hand back, so this is the meaningful behavior to assert. On runtimes that do implement tryGetMutableBuffer, the existing zero-copy assertions are unchanged.


Differential Revision: D108657073

Summary:
## Changelog:
[General][Fixed] Fix asyncArrayBufferBorrowNativeBackedTest unconditional skip on Hermes

On runtimes that don't implement `tryGetMutableBuffer` (e.g. Hermes / Android-32bit), `asyncArrayBufferBorrowNativeBackedTest` always called `GTEST_SKIP()`, which surfaced as a perpetually-skipped test in CI.

Replace the skip with `EXPECT_JSI_THROW(AsyncArrayBuffer::borrow(...))`. On runtimes without `tryGetMutableBuffer`, `borrow` is documented to throw because there is no native `MutableBuffer` to hand back, so this is the meaningful behavior to assert. On runtimes that do implement `tryGetMutableBuffer`, the existing zero-copy assertions are unchanged.

___

Differential Revision: D108657073
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 15, 2026
@meta-codesync

meta-codesync Bot commented Jun 15, 2026

Copy link
Copy Markdown

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D108657073.

@meta-codesync meta-codesync Bot closed this in 9d54391 Jun 15, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jun 15, 2026
@meta-codesync

meta-codesync Bot commented Jun 15, 2026

Copy link
Copy Markdown

This pull request has been merged in 9d54391.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant