Is JavaScript a pass-by-reference or pass-by-value language?
The primitive types (number, string, etc.) are passed by value. Still, objects are unknown because they can be both passed by value (in which case we consider that a variable holding an object is a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).
Although it doesn't matter in the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from the JavaScript specification, which defines what should be the semantics regarding this?