Bug 132730 (defineProperty) - Object.defineProperty ERROR
Summary: Object.defineProperty ERROR
Status: NEW
Alias: defineProperty
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-09 00:37 PDT by Peng Xinchao
Modified: 2014-05-09 00:37 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peng Xinchao 2014-05-09 00:37:36 PDT
The below JS Source :
var keyEvent = document.createEvent('KeyboardEvent');
Object.defineProperty(keyEvent, 'which', {get: function() { 
    return 6; 
   }});

It will throw errer :
" Attempting to change enumerable attribute of unconfigurable property."

The JS  source  run in Safari , It will throw errer :
" Attempting to change enumerable attribute of unconfigurable property.".
They run in chrome , it is ok .