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
Expected behavior
In the example arr.length is overwritten with undefined, but the Object.defineProperties call should only affect the writable attribute while leaving the value of the property unchanged.
Describe the bug
Object.defineProperties
andObject.defineProperty
overwrite existing values when they only should set attributes.To Reproduce
This JavaScript code reproduces the issue:
Expected behavior
In the example
arr.length
is overwritten withundefined
, but theObject.defineProperties
call should only affect thewritable
attribute while leaving the value of the property unchanged.Build environment:
The text was updated successfully, but these errors were encountered: