[Webkit-unassigned] [Bug 31813] New: Add support for block scope const
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 23 14:09:56 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=31813
Summary: Add support for block scope const
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://wiki.ecmascript.org/doku.php?id=harmony:const
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
JSC currently supports const but the current implementation use function scope.
For ES Harmony, const should have block scoping.
var x = 1
{
const x = 2;
print(x); // 2
}
print(x); // 1
x = 3;
print(x); // 3
--
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