This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In the example given on link http://dev.w3.org/2006/webapi/WebIDL/#es-sequence there the example illustrates the ECMAScript implementation. Here // This evaluates to false. canvas.getSupportedImageCodecs() == canvas.getSupportedImageCodecs(); Should be // This evaluates to true. canvas.getSupportedImageCodecs()[0] == canvas.getSupportedImageCodecs(); Else // This evaluates to false. supportedImageCodecs[0] == canvas.getSupportedImageCodecs();
Hi Vineet, thanks for the comment, but the example is correct. Operations that return a sequence<T> type will create a new JS Array object each time the Function is called. I've mentioned this now in the comment: http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.482;r2=1.483;f=h