In Object.defineProperty this.push()
works but this.concat()
does not work
#5041
-
Version18.10.0 PlatformMicrosoft Windows NT 10.0.22621.0 x64 SubsystemV8 engine Object prototype What steps will reproduce the bug?Just run the following
How often does it reproduce? Is there a required condition?Always. No, this is javascript default. What is the expected behavior?
What do you see instead?
Additional information
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
The second sentence of the
This is different from Side note: This is not specific to Node.js, and so Node's issue tracker is not the right place for something like this in the future. |
Beta Was this translation helpful? Give feedback.
The second sentence of the
Array.prototype.concat()
page on MDN:This is different from
Array.prototype.push()
, which modifies the array.Side note: This is not specific to Node.js, and so Node's issue tracker is not the right place for something like this in the future.