3 ms·
Well, I feel less bad about myself for getting stuck there :D The semantics of how properties work in JS are so obnoxious. A read-only property can still be rep
by trzy 4y ago
Well, I feel less bad about myself for getting stuck there :D The semantics of how properties work in JS are so obnoxious. A read-only property can still be replaced entirely, which means e.g.:
entity.position = [0,0,0];
Is ok but:
entity.position[0] = 1;
entity.position[1] = 1;
entity.position[3] = 1;
Fails (and ChatGPT occasionally tries to do the latter).