« Bugzilla Issues Index
#22 — S15.10.6_A2 asserting incorrect behavior
- bug_id:
22
- creation_ts:
2011-02-18 14:03:00 -0800
- short_desc:
S15.10.6_A2 asserting incorrect behavior
- delta_ts:
2011-09-25 11:55:40 -0700
- product:
Test262
- component:
ECMA-262 Tests
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- bug_file_loc:
http://hg.ecmascript.org/tests/test262/rev/c6c9f7f6bc10
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Jason Orendorff
- assigned_to:
Mark S. Miller
- cc:
erights
- commentid:
40
- comment_count:
0
- who:
Jason Orendorff
- bug_when:
2011-02-18 14:03:13 -0800
S15.10.6_A2 Checking performs with toString function
function testcase() {
RegExp.prototype.toString = Object.prototype.toString;
if (RegExp.prototype.toString() !== "[object Object]") {
$ERROR("#1: RegExp.prototype.toString =
Object.prototype.toString; RegExp.prototype.toString() === \"[object
\" + \"Object\" + \"]\". Actual: " + RegExp.prototype.toString());
}
}
SpiderMonkey fails the test because it returns the correct answer, which is "[object RegExp]". (The [[Class]] of RegExp.prototype is "RegExp" according to ES5 section 15.10.6.)
- commentid:
45
- comment_count:
1
- who:
Dave Fugate
- bug_when:
2011-02-21 10:31:23 -0800
Agree and I'll be disabling it shortly.
- commentid:
479
- comment_count:
2
- who:
Mark S. Miller
- bug_when:
2011-09-25 11:55:40 -0700
Fixed at http://hg.ecmascript.org/tests/test262/rev/c6c9f7f6bc10