Any Javascript ninjas or people who read ECMA-262 5th leaving to explain the following behavior?
var obj = { p: {}, set prop(val){ for (var key in val){ this.p[key] = "Set: " + val[key]; } }, get prop(){ return this.p; } } obj.prop = {
I found the above behavior is a bit confusing because I expected the two assigned designations to be functionally equivalent.
source share