-
-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
We cannot pass TypedArrays e.g Uint8Array
to methods expecting NSArray
const encoded = new TextEncoder().encode('Osei');
const n = NSArray.arrayWithArray(encoded as any);
const isEqual = () => {
return encoded[0] === n[0] &&
encoded[1] === n[1] &&
encoded[2] === n[2] &&
encoded[3] === n[3]
}
console.log('isEqual', isEqual());
it will crash at creating the new array with the following
[NSDataAdapter count]: unrecognized selector sent to instance 0x60000005fa40
but in JSC it works fine
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working