react-native-worklets-core icon indicating copy to clipboard operation
react-native-worklets-core copied to clipboard

Adding some tests for checking the spreading behaviour of objects returned by a worklet.

Open jtklein opened this issue 1 year ago • 0 comments

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".

jtklein avatar May 01 '24 15:05 jtklein