Closed Bug 476624 Opened 16 years ago Closed 13 years ago

Implementation of [[DefaultValue]] incorrectly calls valueOf, toString with an argument

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 646129

People

(Reporter: Waldo, Assigned: evilpie)

References

Details

(Keywords: testcase)

+++ This bug was initially created as a clone of Bug #470364 +++ That bug got sidetracked into reverting a change that made us *more* spec-compatible, but not consistently across JIT, non-JIT, and it's now marked fixed with fixedmumble keywords off of it. This bug will actually do what the summary of this bug says (and what's in most of the comments in bug 470364).
test is ecma_3/Object/8.6.2.6-002.js
Keywords: testcase
Flags: in-testsuite+
Not TM-specific, this bug is to change all implementations to not call these methods with an argument at all, per ES3 and ES5 both.
Summary: TM: Implementation of [[DefaultValue]] incorrectly calls valueOf, toString with an argument → Implementation of [[DefaultValue]] incorrectly calls valueOf, toString with an argument
Depends on: 646129
Cloud9 IDE apparently uses this for UA sniffing, FYI.
Bug 647847 has some tests
Assignee: general → evilpies
If we want to fix this we need to fix valueOf for the Date object. I am pretty sure we had some bug about this, but i had no success finding it.
It's bug 646129, in the dependency list -- and the patch there also fixes this.
This more or less a duplicate of bug 646129, but the issue here has been fixed.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.