Re: [html-tests] Add test coverage for the MessageEvent constructor (#3958)

The spec for `ports` says "The ports attribute must return the value it was initialized to." Even though this is apparently using a rather unorthodox definition of "initialized" that also includes being re-set via initMessageEvent, it should still keep returning the same object when initMessageEvent is not called.

In general, the introduction of FrozenArray to the platform was done in order to get this guarantee (that `x.y === x.y`). It gives us something which stays stable (by virtue of being frozen) until it changes (and starts returning a new value).

View on GitHub: https://github.com/w3c/web-platform-tests/pull/3958#issuecomment-252759321

Received on Monday, 10 October 2016 22:09:18 UTC