Closed Bug 56883 Opened 25 years ago Closed 25 years ago

ECMA conformance: Array.prototype.toLocaleString()

Categories

(Rhino Graveyard :: Core, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: david, Assigned: norrisboyd)

Details

The latest rhinoTip does not conform to ECMA v3 15.4.4.3: it does not define Array.prototype.toLocaleString
Doesn't fixing #56879 trivially fix this?
No, fixing 56879 doesn't trivially fix this. Here's a test case that shows the way it should work. js> x = { toLocaleString: function() { count++ } } [object Object] js> count =0 0 js> a = [x,x,x] [object Object],[object Object],[object Object] js> count 0 js> a.toLocaleString() undefined,undefined,undefined js> count 3
Status: NEW → ASSIGNED
Fixed: Checking in NativeArray.java; /cvsroot/mozilla/js/rhino/org/mozilla/javascript/NativeArray.java,v <-- Native Array.java new revision: 1.10; previous revision: 1.9 done
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified on Linux and WinNT using trunk build of Rhino 2000-10-25; method of verficiation the same as in bug 56884 -
Status: RESOLVED → VERIFIED
NOTE: also passed Norris' test case described above at 2000-10-23 07:30. Will add to the test suite -
Norris' testcase has been added to JS test suite as follows: js/tests/ecma_3/Array/15.4.4.3-1.js
You need to log in before you can comment on or make changes to this bug.