Status: New
Owner: ----

New issue 1977 by [email protected]: Non-boxed `this` value in non-strict getter
http://code.google.com/p/v8/issues/detail?id=1977

The following code should log "object" according to the ES5 spec, section 10.4.3 [1]:

Object.defineProperty(Object.prototype, "getMe", {
    get: function () {
        console.log(typeof this);
    }
});

Instead it logs "number".

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

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to