[Webkit-unassigned] [Bug 168295] Location's Symbol.toPrimitive is not exposed correctly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 14 08:42:50 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=168295
--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
To create a Location object, run these steps:
Let location be a new Location platform object.
Perform ! location.[[DefineOwnProperty]]("valueOf", { [[Value]]: %ObjProto_valueOf%, [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }).
Perform ! location.[[DefineOwnProperty]](@@toPrimitive, { [[Value]]: undefined, [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }).
Set the value of the [[DefaultProperties]] internal slot of location to location.[[OwnPropertyKeys]]().
Return location.
--
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/20170214/824354c4/attachment.html>
More information about the webkit-unassigned
mailing list