You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var o = {};
Object.defineProperty(o, 'foo', {enumerable:true, writable:false, value:'f'});
var o2 = clone(o);
console.log(Object.getOwnPropertyDescriptor(o2, 'foo'));
The property descriptor on the copied object specifies the property as writable even though the original property wasn't writable.
The text was updated successfully, but these errors were encountered:
Consider the following example:
The property descriptor on the copied object specifies the property as
writable
even though the original property wasn't writable.The text was updated successfully, but these errors were encountered: