- From: <bugzilla@jessica.w3.org>
- Date: Wed, 27 Nov 2013 02:35:25 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23853 --- Comment #20 from Boris Zbarsky <bzbarsky@mit.edu> --- Glenn, I would be very interested in why you think Date should be used in the _constructor_. Or do we agree that using a numeric timestamp there is maximally compatible (and still allows callers to pass in a Date)? As for returning a value, you're right that there is a problem common to a number of JS objects that have internal state but you don't want the page to mutate. Note that this is not a problem for dictionaries (e.g. you could return a frozen one), but _is_ a problem for Map and Date, because those can't be meaningfully made immutable. One could, of course, return proxies that disallow the mutation methods... There are a bunch of open issues here, and I'd welcome your input on solving them, on public-script-coord. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Wednesday, 27 November 2013 02:35:27 UTC