[Webkit-unassigned] [Bug 24995] New: Object literal accessors are restricted to function literal names
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 1 17:02:18 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=24995
Summary: Object literal accessors are restricted to function
literal names
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://code.eligrey.com/testcases/webkit/object-literal-
accessors.html
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P4
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bugzilla at eligrey.com
Object literal accessors ([gs]etters) are restricted to function literal names
(ie. "fooBar" is valid, but "foo-bar" is not).
There is currently no way at all in WebKit to use other names in object
literals. I think WebKit should implement something along the lines of
Mozilla's syntax for object literal accessors:
{'property-name string' [gs]etter:function () {...}}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list