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)
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
Comment 1•12 years ago
|
||
Updated•10 years ago
|
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.
Description
•