[Webkit-unassigned] [Bug 18735] New: SQUIRRELFISH: closures are sometimes given an incorrect 'this' value when called
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 24 23:22:41 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18735
Summary: SQUIRRELFISH: closures are sometimes given an incorrect
'this' value when called
Product: WebKit
Version: 526+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Keywords: SquirrelFishBlocker
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: cwzwarich at uwaterloo.ca
OtherBugsDependingO 18624
nThis:
Consider the following example:
---
var text = "PASS";
function a()
{
var text = "FAIL";
function b()
{
alert(this.text);
}
this.c = function()
{
b();
}
b();
}
(new a()).c();
---
This code should print PASS twice, but instead prints PASS once and then FAIL.
This affects the JavaScriptCore test js1_5/Scope/scope-003.js.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list