Closing the loop here: With the help from :bholley the Cu.cloneInto() method now comes with an option to deepFreeze the cloned object. Those who interested can check out the bugs.
https://bugzilla.mozilla.org/show_bug.cgi?id=1184439 https://bugzilla.mozilla.org/show_bug.cgi?id=1186213 This is not as convenient as a keyword in WebIDL but I think it's good enough. On Wed, Jul 15, 2015 at 4:14 AM, Boris Zbarsky <bzbar...@mit.edu> wrote: > On 7/13/15 2:40 AM, Tim Guan-tin Chien wrote: >> >> In that case, the right question to ask would be (A) should >> DOMApplication#manifest be a recursive frozen JS structure > > > Is it a plain vanilla object with nothing hanging off it that has > getter/setters? If so, that would not be unreasonable. > >> and maybe >> (B) should WebIDL binding provide an keyword like DeepFrozen that >> could recursive freeze the exposed structure. > > > We could do that, probably. It's not trivial, but is doable. > > > -Boris > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform