[Webkit-unassigned] [Bug 145460] New: Make Function.(name|length) configurable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 29 10:17:12 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=145460
Bug ID: 145460
Summary: Make Function.(name|length) configurable
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: yselivanov at gmail.com
This is an important feature for OOP libraries: typically classes are emulated using functions, hence class *static* properties are properties of the function object that represents the class. Since '.name' and '.length' properties are read-only and non-configurable for functions, there is no way to have '.name' and '.length' static properties for classes.
This is something that has already been fixed in Chrome and Firefox:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1084019
- https://chromium.googlesource.com/v8/v8/+/f6cd009efd7a032907b11265e74102b0d45207a1%5E!/
And InternetExplorer doesn't have any restrictions on these properties, which leaves WebKit/Safari the only browser that doesn't support this.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150529/0d2875ca/attachment.html>
More information about the webkit-unassigned
mailing list