Subj : Re: ECMAScript standard and new parseInt("100") To : mozilla-jseng@mozilla.org From : waldemar@netscape.com (Waldemar Horwat) Date : Mon Apr 14 2003 07:50 pm At 5:43 PM +0200 4/14/03, Igor Bukanov wrote: >Does ECMAScript standard says anything about calling function >properties of the standard objects as constructors? For example, >does it specify in any way what should be the result of new >parseInt("100"), new "1".valueOf() ? Remarkably, it does. These should produce errors, as stated on the first page of ECMAScript Edition 3, chapter 15: "None of the built-in functions described in this section shall implement the internal [[Construct]] method unless otherwise specified ...." Waldemar .