[Webkit-unassigned] [Bug 132730] New: Object.defineProperty ERROR

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 9 00:37:14 PDT 2014


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

           Summary: Object.defineProperty ERROR
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: xinchao.peng at samsung.com
                CC: fpizlo at apple.com


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 .

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list