Repository navigation
Commit 3e8ff37
committed
fix(runtime): store nothing natively for a claim whose adapter is released
Assigning a JS object to an index of a native mutable array passed the
object's claim to replaceObjectAtIndex:withObject:. Once the claim's
adapter was released, the claim loaded as nil and the native write threw
NSInvalidArgumentException, which aborted the app.
The setter now resolves the value as marshalling does: a claim whose
adapter is released is detached, so the object is stored like any plain
JS object.1 parent d1a8c7e commit 3e8ff37
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1505 | 1505 | | |
1506 | 1506 | | |
1507 | 1507 | | |
1508 | | - | |
| 1508 | + | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | 1511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
844 | 848 | | |
845 | 849 | | |
846 | 850 | | |
| |||
0 commit comments