Status: New Owner: ---- New issue 1381 by [email protected]: ES5 Strict: Incorrect this value http://code.google.com/p/v8/issues/detail?id=1381
In ES5 strict mode a function referencing this should return undefined and not the global object
(function() {
'use strict';
function getThis() {
return this;
}
assert(getThis() === undefined);
})();
Attachments:
undefined-this.html 178 bytes
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
