archives

« Bugzilla Issues Index

#4163 — 19.4.3.4 Symbol.prototype [ @@toPrimitive ] ( hint ) says "object", should say "symbol"


https://people.mozilla.org/~jorendorff/es6-draft.html#sec-symbol.prototype-@@toprimitive

In the descriptive paragraph:

This function is called by ECMAScript language operators to convert an
object to a primitive value. The allowed values for hint are "default",
"number", and "string".


Should read:

This function is called by ECMAScript language operators to convert an
symbol to a primitive value. The allowed values for hint are "default",
"number", and "string".


"convert an object" => "convert a symbol"


fixed in Rev36 editor's draft


in rev36