When reading through the ECMAScript specification, I noticed, it actually never mentions concepts like "pass by value" or "pass by reference".
When looking at the assignment operator, this is how it is specified:
An expression like
let a = 4
would lead to path 1.d. Which basically just sets the value of 4 to a. But same would be true for the assignment of an object.
Does this mean, it would be a conforming ECMAScript implementation to copy objects by value (which obviously isn't the case in any known implementation)?
I have checked Emacs documentation but I did not get a satisfying solution, I want an experienced JavaScrip