<?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>158062</bug_id>
          
          <creation_ts>2016-05-25 02:39:59 -0700</creation_ts>
          <short_desc>&quot;use strict&quot;; delete ProgressEvent.length; should not throw</short_desc>
          <delta_ts>2016-05-25 07:47:07 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>145460</dup_id>
          
          <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="Simon Pieters (:zcorpan)">zcorpan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mark.lam</cc>
    
    <cc>saam</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1196255</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2016-05-25 02:39:59 -0700</bug_when>
    <thetext>See https://github.com/w3c/web-platform-tests/pull/3068

This fails in WebKit:

&lt;!DOCTYPE html&gt;
&lt;script&gt;
&quot;use strict&quot;;
try {
  delete ProgressEvent.length;
  w(&apos;PASS&apos;);
} catch(e) {
  w(&apos;FAIL&apos;);
}
&lt;/script&gt;

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4231

Per ES6 deleting a function&apos;s &quot;length&quot; property should apparently not throw (even in strict mode). It throws in WebKit for a vanilla function:

&lt;!DOCTYPE html&gt;
&lt;script&gt;
&quot;use strict&quot;;
var x = function(x) {};
try {
  delete x.length;
  w(&apos;PASS&apos;);
} catch(e) {
  w(&apos;FAIL&apos;);
}
&lt;/script&gt;

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4232

Also, the ProgressEvent interface object is typeof &quot;object&quot; in WebKit but per WebIDL should be &quot;function&quot;.

&lt;!DOCTYPE html&gt;
&lt;script&gt;
w(typeof ProgressEvent == &quot;function&quot; ? &quot;PASS&quot; : &quot;FAIL&quot;);
&lt;/script&gt;

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1196258</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2016-05-25 03:08:19 -0700</bug_when>
    <thetext>Or, this should be true:

Object.getOwnPropertyDescriptor(function(){}, &apos;length&apos;).configurable

It seems this bug is a dup of the following two bugs:

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

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

    </bug>

</bugzilla>