Commit 4649770
authored
fix(Worklets): strip RN Runtime assertions only for other runtimes (#8531)
## Summary
After the changes done in #8471 it turned out that in Bundle Mode there
were redundant checks for cpp version on Worklet Runtimes and also
freezing Serializables on Worklet Runtimes. Check for the cpp version
started to crash the runtime (previously it was silently failing) while
the freezing could in some circumstances break the logic of Mutables.
## Test plan
Run the app in Bundle Mode and see it's no longer crashing.1 parent bc52bf3 commit 4649770
File tree
2 files changed
+3
-2
lines changed- packages/react-native-worklets/src
- WorkletsModule
- memory
2 files changed
+3
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
650 | 651 | | |
651 | 652 | | |
652 | 653 | | |
653 | | - | |
| 654 | + | |
654 | 655 | | |
655 | 656 | | |
656 | 657 | | |
| |||
0 commit comments