Hi

I believe Object.assign never update the target's [[prototype]]. But current 
rev19 spec is using Put. So I'm afraid of following case will update the 
[[prototype]].

var soruce = {};
Object.defineProperty(source, "__proto__", {
    value: { a: "A", b: "B" },
    enumerable: true
});
var target = {};
Object.assign(target, source);
Is this expected result ? and is there a plan to change to 
DefinePropertyOrThrow from Put ?

Thanks.

-- 
teramako
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to