Bug 84906 - [V8] Constructors are reported as read only but they are not really read only
Summary: [V8] Constructors are reported as read only but they are not really read only
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-25 16:51 PDT by Erik Arvidsson
Modified: 2014-12-16 00:48 PST (History)
1 user (show)

See Also:


Attachments
Layout Test (1.08 KB, text/html)
2012-04-27 14:03 PDT, Erik Arvidsson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.