5 ms·
When storing an object in an array, the value is checked to be a Value::Object (which can't be null), but you also have Value::Null, so storing null in an array
by skitter 3y ago
When storing an object in an array, the value is checked to be a Value::Object (which can't be null), but you also have Value::Null, so storing null in an array fails (I think). Storing null in local variables, a static field or an instance field works fine.
- andreabergia 3y agoGood point. Someone (probably you) opened a GitHub issue about this too. I might actually fix this one :-)