[Webkit-unassigned] [Bug 35722] New: "this" context is lost when eval'd from remote script
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 3 23:59:49 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=35722
Summary: "this" context is lost when eval'd from remote script
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://www.jondavis.net/codeprojects/using.js/
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jon at jondavis.net
The following script passes when it executes directly within a <script> tag in
an HTML document, but it fails if it executes within a .js file that is
src=".." referenced.
function runTest() {
var fn = function() {
window.eval('if (this == window) { alert("Context was NOT retained:
FAIL"); } else { alert("Context was retained: PASS"); } ');
}
fn.call('not window');
}
runTest();
--
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