Boolean.prototype.valueOf resolves to AS3::valueOf instead of public::valueOf, leading to a wrong result

RESOLVED INCOMPLETE

Status

defect
RESOLVED INCOMPLETE
5 years ago
3 years ago

People

(Reporter: till, Assigned: mbx)

Tracking

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

This might well not be fixable. It's caused by us installing the AS3 traits into the normal prototypes for primitive builtins. That leads to Boolean.prototype having definitions for both AS3::valueOf and public::valueOf, and we go for the AS3 version.

For some reason that I cannot figure out at all, this is actually not true in the shell: there we correctly resolve to public::valueOf, with the interpreter and both compilers. In the browser, we do the wrong thing always.

I'm not sure this matters at all as I have a hard time thinking of any content that would actually depend on this: it should behave the same absolutely everywhere *but* for Boolean.prototype itself.
Assignee: nobody → mbebenita
Blocks: shumway-1.0
Product: Firefox → Firefox Graveyard
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.