« Bugzilla Issues Index
#93 — test 10.6-13-a-1 depends upon the result of applying toString to a function
- bug_id:
93
- creation_ts:
2011-04-17 11:49:00 -0700
- short_desc:
test 10.6-13-a-1 depends upon the result of applying toString to a function
- delta_ts:
2011-05-12 16:12:00 -0700
- product:
Test262
- component:
ECMA-262 Tests
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- see_also:
https://bugs.ecmascript.org/show_bug.cgi?id=92
- priority:
Normal
- bug_severity:
normal
- dependson:
92
- everconfirmed:
true
- reporter:
Allen Wirfs-Brock
- assigned_to:
Dave Fugate
- commentid:
189
- comment_count:
0
- who:
Allen Wirfs-Brock
- bug_when:
2011-04-17 11:49:18 -0700
This test expects a specific string result for applying toString to a function. As described in bug 92 this is invalid as the result of toString for functions is implementation defined.
Rather than testing the source code of the function the test should do something like:
var expectedFunction=undefined;
var argObj = function f() {expectedFunction=f; return arguments;}();
var verifyValue = argObj.callee === expectedFunction &&
typeof argObj.callee === "function";
- commentid:
207
- comment_count:
1
- who:
Dave Fugate
- bug_when:
2011-05-12 13:12:59 -0700
Agreed. Will fix the test in Hg shortly.