<?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>132730</bug_id>
          <alias>defineProperty</alias>
          <creation_ts>2014-05-09 00:37:36 -0700</creation_ts>
          <short_desc>Object.defineProperty ERROR</short_desc>
          <delta_ts>2025-05-23 17:50:41 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Peng Xinchao">xinchao.peng</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ashvayka</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1007921</commentid>
    <comment_count>0</comment_count>
    <who name="Peng Xinchao">xinchao.peng</who>
    <bug_when>2014-05-09 00:37:36 -0700</bug_when>
    <thetext>The below JS Source :
var keyEvent = document.createEvent(&apos;KeyboardEvent&apos;);
Object.defineProperty(keyEvent, &apos;which&apos;, {get: function() { 
    return 6; 
   }});

It will throw errer :
&quot; Attempting to change enumerable attribute of unconfigurable property.&quot;

The JS  source  run in Safari , It will throw errer :
&quot; Attempting to change enumerable attribute of unconfigurable property.&quot;.
They run in chrome , it is ok .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989052</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-31 19:05:08 -0700</bug_when>
    <thetext>Just created this JSFiddle:

https://jsfiddle.net/zdjoc0yL/

It does not throw any error in Safari 17. Anything needed here?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>