[Webkit-unassigned] [Bug 147883] New: ES6: Implement computed accessors
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 11 10:59:41 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147883
Bug ID: 147883
Summary: ES6: Implement computed accessors
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: ggaren at apple.com
Example test case:
=====
var x = 'y',
valueSet,
obj = {
get [x] () { return 1 },
set [x] (value) { valueSet = value }
};
obj.y = 'foo';
return obj.y === 1 && valueSet === 'foo';
=====
This will probably require three new opcodes: op_put_getter_by_val, op_put_setter_by_val, op_put_getter_setter_by_val.
Like the equivalent by_id opcodes, these opcodes will mostly be a clone of get_by_val and put_by_val, with slightly different behavior for being getters and setters, and for not consulting the prototype chain.
--
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/20150811/15596f13/attachment-0001.html>
More information about the webkit-unassigned
mailing list