Comment #2 on issue 1365 by [email protected]: Calling functions through variables doesn't use undefined as receiver.
http://code.google.com/p/v8/issues/detail?id=1365

No, 1321 is about the native functions' handling of undefined/null this-values. Currently we can only pass these through Function.prototype.{call,apply} because of this bug: we always pass the global receiver as this-value when calling a function through an unadorned variable (except for with-bound ones). We should instead pass undefined for strict and native functions.

Firefox currently does this correctly. Safari and Opera does the same thing we do for native functions, IE also correctly throws a TypeError (but with a weird message?).

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

Reply via email to