WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 14611
19194
KJS behaves differently when handling redeclaration of a const variable
https://bugs.webkit.org/show_bug.cgi?id=19194
Summary
KJS behaves differently when handling redeclaration of a const variable
Feng Qian
Reported
2008-05-22 10:34:22 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Cameron Zwarich (cpst)
Comment 1
2008-05-22 11:10:37 PDT
This is a duplicate of
bug 14611
. *** This bug has been marked as a duplicate of
14611
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug