Closed
Bug 56883
Opened 25 years ago
Closed 25 years ago
ECMA conformance: Array.prototype.toLocaleString()
Categories
(Rhino Graveyard :: Core, defect, P3)
Rhino Graveyard
Core
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
Comment 1•25 years ago
|
||
Doesn't fixing #56879 trivially fix this?
| Assignee | ||
Comment 2•25 years ago
|
||
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
| Assignee | ||
Comment 3•25 years ago
|
||
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
Comment 4•25 years ago
|
||
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
Comment 5•25 years ago
|
||
NOTE: also passed Norris' test case described above at 2000-10-23 07:30.
Will add to the test suite -
Comment 6•24 years ago
|
||
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.
Description
•