archives

« Bugzilla Issues Index

#4367 — 4.3.19 String object instantiation


"A String object is created by using the String constructor in a new expression, supplying a String value as an argument. The resulting object has an internal slot whose value is the String value"

Due to type conversion maybe it could be more precise:

"A String object is created by using the String constructor in a new expression, supplying any value as an argument. The resulting object has an internal slot whose value is the argument supplied converted to String value"

Similar problem at 4.3.16 (Boolean object), 4.3.22 (Number object)


ancient spec. language and non-normative so it doesn't really have to be precise.

something to consider cleaning up in ES7