WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 79588
79843
Should not box `this` in strict-mode getters
https://bugs.webkit.org/show_bug.cgi?id=79843
Summary
Should not box `this` in strict-mode getters
Domenic Denicola
Reported
2012-02-28 16:04:38 PST
The following code should log "number" according to the ES5 spec, section 10.4.3 [1]: Object.defineProperty(Object.prototype, "getMe", { get: function () { "use strict"; console.log(typeof this); } }); (0).getMe; Instead it logs "object". See also es-discuss discussion [2] and test-262 bug [3]. [1]:
http://es5.github.com/#x10.4.3
[2]:
https://mail.mozilla.org/pipermail/es-discuss/2012-February/020781.html
[3]:
https://bugs.ecmascript.org/show_bug.cgi?id=284
Attachments
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2012-02-29 15:29:30 PST
Please retest in a nightly, this is already fixed. :-) *** This bug has been marked as a duplicate of
bug 79588
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug