ecma262 icon indicating copy to clipboard operation
ecma262 copied to clipboard

Object() constructor does not always construct new ordinary object

Open Josh-Cena opened this issue 2 years ago • 4 comments
trafficstars

20.1.1 The Object Constructor:

However, it only "creates a new ordinary object" when new.target !== Object. new Object(v) is exactly equivalent to Object(v) and "performs a type conversion". Not sure how this can be rephrased, though.

Josh-Cena avatar Sep 07 '23 19:09 Josh-Cena