[Webkit-unassigned] [Bug 19194] New: KJS behaves differently when handling redeclaration of a const variable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 22 10:34:22 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=19194
Summary: KJS behaves differently when handling redeclaration of a
const variable
Product: WebKit
Version: 526+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ian.eng.webkit at gmail.com
In following example:
(function() {
const c = 0;
var c = 1;
print(c);
})();
FF 3RC1 throws an exception at 'var c = 1;':
redeclaration of const c.
KJS (and squirrelfish) silently ignores the redeclaration and prints out 0.
I think FF's behavior is more desirable. 'var c = 1;' is likely a bug if a JS
program, but KJS let the exception continue so it is very hard for the program
to figure out what's wrong.
--
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