[Webkit-unassigned] [Bug 35722] "this" context is lost when eval'd from remote script

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 4 15:44:07 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35722





--- Comment #3 from Jon Davis <jon at jondavis.net>  2010-03-04 15:44:07 PST ---
(In reply to comment #2)
> Since 'this == window' generally works

That is not correct. 'this == window' is never supposed to be true if the
context has been assigned for the function invocation in context to something
other than window.

var fn = function() { alert(this); };
fn.call('hello world');

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list