react-native-worklets-core
react-native-worklets-core copied to clipboard
Adding some tests for checking the spreading behaviour of objects returned by a worklet.
The added check_jsi_object_is_returned_from_worklet test passes to show that the correct object is returned. It might be redundant compared the current main, I have not done an exhaustive check there.
However, in contrast - but on top of the previous test - the two newly added tests check_jsi_object_is_spreadable_after_worklet and check_jsi_object_is_assignable_after_worklet fail, showing that neither spread syntax nor Object.assign() can be used with the returned "object".