[Webkit-unassigned] [Bug 21532] New: Remove duplicate const declaration in fast/js/const.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 10 15:08:34 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21532

           Summary: Remove duplicate const declaration in fast/js/const.html
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pam at chromium.org


The test fast/js/const.js contains the lines

const x = "RIGHT";
...
const x = "RIGHT", y = "RIGHT";

Redeclaring 'const x', which produces an error. 
(http://www.mozilla.org/js/language/js20-2002-04/core/variables.html discusses
disallowing redefining consts; other places may too.)

The test should be fixed to use a different variable name there, since that
portion is not trying to test redefining constants.  A separate test can be
added for the latter.


-- 
Configure bugmail: https://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