Skip to content

[pull] main from Shopify:main - #220

Merged
pull[bot] merged 1 commit into
code:mainfrom
Shopify:main
Aug 23, 2026
Merged

[pull] main from Shopify:main#220
pull[bot] merged 1 commit into
code:mainfrom
Shopify:main

Conversation

@pull

@pull pull Bot commented Aug 23, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Both are declared as `(value: boolean) => void` in the TypeScript API, and
the CanvasKit backend forwards the boolean straight through. On native they
were bound with a `double` parameter, so `JSIConverter<double>` called
`asNumber()` on the argument and a real boolean threw:

    Exception in HostFunction: Value is true, expected a number

Binding them as `bool` routes through `JSIConverter<bool>`, which uses
`asBool()`, matching the two neighbouring boolean setters
(`setEmbeddedBitmaps` and `setLinearMetrics`) and the declared API.

The `double` parameters date back to the typed-bindings migration (#3965),
which preserved the previous `asNumber()` behaviour so as not to change
semantics in a mechanical refactor. That kept the JS API unusable on native
without casting the argument to a number.

Co-authored-by: William Candillon <wcandillon@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Aug 23, 2026
@pull pull Bot added the ⤵️ pull label Aug 23, 2026
@pull
pull Bot merged commit ac61b53 into code:main Aug 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant