Closed Bug 869098 Opened 12 years ago Closed 10 years ago

SpiderMonkey is incorrectly boxing this when using strict accessors

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 603201

People

(Reporter: oliver, Unassigned)

Details

SM is incorrectly (per ES5.1) boxing the |this| value passed to strict mode accessors, such that (function() { "use strict"; Number.prototype.__defineGetter__("foo", function() { return typeof this; }); alert(1..foo) })() Produces "object" when it should produce "number", and similarly for setters
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.