Bug 84906

Summary: [V8] Constructors are reported as read only but they are not really read only
Product: WebKit Reporter: Erik Arvidsson <arv>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: haraken
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Layout Test none

Description Erik Arvidsson 2012-04-25 16:51:51 PDT
The descriptor for the constructor WebIDL attributes on Window are broken

Object.getOwnPropertyDescriptor(window, 'HTMLBodyElement')
configurable: true
enumerable: true
value: function HTMLBodyElement() { [native code] }
writable: false

window.HTMLBodyElement = 42;
42

Object.getOwnPropertyDescriptor(window, 'HTMLBodyElement')
configurable: true
enumerable: true
value: 42
writable: true

The Apple port (JSC) correctly returns writable: true
Comment 1 Erik Arvidsson 2012-04-27 14:03:15 PDT
Created attachment 139270 [details]
Layout Test
Comment 2 Brian Burg 2014-12-16 00:48:11 PST
Closing some V8-related work items.