NEW132730
defineProperty Object.defineProperty ERROR
https://bugs.webkit.org/show_bug.cgi?id=132730
Summary Object.defineProperty ERROR
Peng Xinchao
Reported 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 .
Attachments
Ahmad Saleem
Comment 1 2023-10-31 19:05:08 PDT
Just created this JSFiddle: https://jsfiddle.net/zdjoc0yL/ It does not throw any error in Safari 17. Anything needed here?
Note You need to log in before you can comment on or make changes to this bug.