« Bugzilla Issues Index
#103 — 15.5.4.20-2-48.js looks suspicious
- bug_id:
103
- creation_ts:
2011-05-25 13:14:00 -0700
- short_desc:
15.5.4.20-2-48.js looks suspicious
- delta_ts:
2011-05-26 11:31:12 -0700
- product:
Test262
- component:
ECMA-262 Tests
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Dave Fugate
- assigned_to:
Dave Fugate
- commentid:
219
- comment_count:
0
- who:
Dave Fugate
- bug_when:
2011-05-25 13:14:29 -0700
This test case includes:
function testcase() {
var dateObj = new Date();
return String.prototype.trim.call(dateObj) === dateObj.toString();
}
ES5.1 states:
15.9.5.2 Date.prototype.toString ( )
This function returns a String value. The contents of the String are implementation-dependent, but are intended to represent the Date in the current time zone in a convenient, human-readable form.
Without diving into the definition of String.trim, I'd say it's possible that some implementations could fail this test and still adhere to the spec.
- commentid:
221
- comment_count:
1
- who:
Dave Fugate
- bug_when:
2011-05-25 13:35:30 -0700
Ditto for 15.5.4.20-2-52.js.
- commentid:
223
- comment_count:
2
- who:
Dave Fugate
- bug_when:
2011-05-25 17:26:24 -0700
Confirmed both of these test cases are invalid.
- commentid:
224
- comment_count:
3
- who:
Dave Fugate
- bug_when:
2011-05-26 11:31:12 -0700
Fix added to Mercurial.