Re: [heycam/webidl] Can FrozenArray<T> be used for a mutable attribute? (#265)

> This is the only mutable FrozenArray<T> attribute in Blink, and perhaps the first in any spec

As far as I'm aware, that's correct.

> so I thought it best to check if behavior like this is fine

The behavior you describe is the currently specced behavior, for what it's worth.  Also note:

    var artwork = [];
    metadata.artwork = artwork;
    artwork = metadata.artwork;
    metadata.artwork = artwork;
    assert_not_equals(metadata.artwork, artwork);

Unfortunately there aren't really better options here, which is why FrozenArray is specced the way it's specced.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/265#issuecomment-272186916

Received on Thursday, 12 January 2017 15:07:34 UTC