Reviewed by Darin.
authorkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Aug 2004 22:45:51 +0000 (22:45 +0000)
committerkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Aug 2004 22:45:51 +0000 (22:45 +0000)
commit62ba3bbe7804495c1a62eaf8853d48b729bdaeff
tree19eda89a5fa4ba3efa2b7293a2d9311ea2014860
parent9a15d51128dd5f2e406b3bb3b8472f878196656a
    Reviewed by Darin.

Rolled in changes from the latest KJS sources that support additional
Number.prototype functions.

Specifically this patch covers the follow parts of the ECMA 3 spec:
   15.7.4.5, 15.7.4.6, and 15.7.4.7

Fixes:
<rdar://problem/3663716> missing Number.toFixed (and toPrecision, toExponential)
<rdar://problem/3749492> missing Number.toPrecision prototype implementation
<rdar://problem/3749591> missing Number.toExponential prototype implementation

        * kjs/identifier.h: Added toFixed, toPrecision, and toExponential to the
list of supported identifiers (a macro).
        * kjs/number_object.cpp: Implemented support for toFixed(), toPrecision(),
and toExponential().
        (NumberPrototypeImp::NumberPrototypeImp):
        (NumberProtoFuncImp::call):
        * kjs/number_object.h: Added property names for toFixed, toPrecision,
and toExponential.
        (KJS::NumberProtoFuncImp::):
        * tests/mozilla/expected.html: Update results.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/identifier.h
JavaScriptCore/kjs/number_object.cpp
JavaScriptCore/kjs/number_object.h
JavaScriptCore/tests/mozilla/expected.html