Bug 132730 (defineProperty)
| Summary: | Object.defineProperty ERROR | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Peng Xinchao <xinchao.peng> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, ashvayka, fpizlo, ysuzuki |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Peng Xinchao
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
Just created this JSFiddle:
https://jsfiddle.net/zdjoc0yL/
It does not throw any error in Safari 17. Anything needed here?