Open dktapps opened 3 years ago
Seems like the real bug is that this check is not firing, because the offset doesn't exist: https://github.com/pmmp/pthreads/blob/fork/src/store.c#L311
On closer inspection this problem could be hard to solve, because BP_VAR_W
writes could also be generated by something like threaded->nonExisting[0] = 1
, which should not result in automatic property creation. pthreads_store_read()
doesn't make any differentiation between property reads and array offset accesses.
produces
vs
which produces