<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>21700</bug_id>
          
          <creation_ts>2008-10-16 18:17:00 -0700</creation_ts>
          <short_desc>Constants declared with const can be overwritten</short_desc>
          <delta_ts>2008-10-16 19:59:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14611</dup_id>
          
          <bug_file_loc>javascript:const foo = 1; const foo = 2; alert(foo)</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eli Grey (:sephr)">bugmail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95680</commentid>
    <comment_count>0</comment_count>
    <who name="Eli Grey (:sephr)">bugmail</who>
    <bug_when>2008-10-16 18:17:00 -0700</bug_when>
    <thetext>Constants declared with const can be overwritten by redeclaring the constant again using the const keyword.

const foo = 1; const foo = 2; foo == 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95695</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-10-16 19:59:26 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 14611 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>