Add placeholder getter/setter functions on props
Add placeholder getter/setter functions on props

Previously this would work because obj.properties didn’t have any getters or setters in its descriptors, thus the second line was a NOP for that property, and an obj.setter would be defined:

var a = {};
Object.defineProperty(a, 'x', {value: 0, writable: true, configurable: false});
Object.defineProperty(a, 'x', {get: function(){return 42}});

NeilFraser/JS-Interpreter,NeilFraser/JS-Interpreter,NeilFraser/JS-Interpreter