I believe there to be an error in the introductory text for ES6 19.5.6:
NativeError Object Structure, it was also present in the text for ES5.1
and I believe it is a hang-over from ES3.
19.5.6 reads:
[...] Each of these objects has the structure described below,
differing only in the name used as the constructor name instead of
NativeError, in the name property of the prototype object, and in the
implementation-defined message property of the prototype object.
[...]
The statement that the message property of the prototype object is
inconsistent with the later definition of that property in 19.5.6.3.2:
The initial value of the message property of the prototype for a
givenNativeError constructor is the empty String.
Looking back to ES3, the definition of NativeError.prototype.message
(15.11.7.10) was:
The initial value of the message property of the prototype for a
givenNativeError constructor is an implementation-defined string.
Examination of this issue came about as a result of discussion as to
whether instances of NativeErrors are defined to have
implmentation-dependent messages, which I believe is the intent of this
portion of the introductory text?
I'll also note here that the name property is typeset in the wrong font.
I'd have put this directly into the bugzilla instance, but I'm not
receiving the confirmation email when requesting a new account.
,
Thomas Wood
Hi all,
I believe there to be an error in the introductory text for ES6 19.5.6:
NativeError Object Structure, it was also present in the text for ES5.1
and I believe it is a hang-over from ES3.
19.5.6 reads:
> [...] Each of these objects has the structure described below,
> differing only in the name used as the constructor name instead of
> NativeError, in the name property of the prototype object, and in the
> implementation-defined message property of the prototype object.
> [...]
The statement that the message property of the _prototype_ object is
inconsistent with the later definition of that property in 19.5.6.3.2:
> The initial value of the message property of the prototype for a
> givenNativeError constructor is the empty String.
Looking back to ES3, the definition of NativeError.prototype.message
(15.11.7.10) was:
> The initial value of the message property of the prototype for a
> givenNativeError constructor is an implementation-defined string.
Examination of this issue came about as a result of discussion as to
whether instances of NativeErrors are defined to have
implmentation-dependent messages, which I believe is the intent of this
portion of the introductory text?
I'll also note here that the name property is typeset in the wrong font.
I'd have put this directly into the bugzilla instance, but I'm not
receiving the confirmation email when requesting a new account.
Regards,
Thomas Wood
I believe there to be an error in the introductory text for ES6 19.5.6: NativeError Object Structure, it was also present in the text for ES5.1 and I believe it is a hang-over from ES3.
19.5.6 reads:
The statement that the message property of the prototype object is inconsistent with the later definition of that property in 19.5.6.3.2:
Looking back to ES3, the definition of NativeError.prototype.message (15.11.7.10) was:
Examination of this issue came about as a result of discussion as to whether instances of NativeErrors are defined to have implmentation-dependent messages, which I believe is the intent of this portion of the introductory text?
I'll also note here that the name property is typeset in the wrong font.
I'd have put this directly into the bugzilla instance, but I'm not receiving the confirmation email when requesting a new account.
, Thomas Wood