<?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>19523</bug_id>
          
          <creation_ts>2008-06-12 14:55:50 -0700</creation_ts>
          <short_desc>delete does not work in javascript</short_desc>
          <delta_ts>2008-07-02 03:09:17 -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>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83128</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-06-12 14:55:50 -0700</bug_when>
    <thetext>delete does not work in javascript

&lt;script&gt;
var a = 1;
delete a;
alert(a);
&lt;/script&gt;

This throws a reference error in FF, not in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84962</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-07-02 02:31:19 -0700</bug_when>
    <thetext>var declarations aren&apos;t deletable, per spec.  Firefox agrees with this.  I would close as invalid, but there is one case we do fuck up:

&lt;script&gt;
a = 1;
&lt;/script&gt;
&lt;script&gt;
var a;
delete a;
alert(a);
&lt;/script&gt;

the existing a should prevent the creation of a new static slot for a, so the delete should succeed in this case.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84964</commentid>
    <comment_count>2</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-07-02 02:37:34 -0700</bug_when>
    <thetext>Happily  we&apos;ve already fixed this bug.  Closing as invalid because the original bug was not valid, and my updated bug was actaully already fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84970</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-07-02 03:09:17 -0700</bug_when>
    <thetext>I added a test for the second scenario that Oliver mentioned in r34952, because we did not have any existing coverage of this case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>