Bug
1598284 [wpt PR 20358] - Use spread syntax in WebIDL/current-realm.html., a=testonly
Automatic update from web-platform-tests
Use spread syntax in WebIDL/current-realm.html. (#20358)
In [1], it is reported that Chrome is failing the test calling
`CanvasRenderingContext2D.createImageData()` with
FAIL message: Failed to execute 'createImageData' on
'CanvasRenderingContext2D': The provided value is not of type
'(Uint8ClampedArray or Uint16Array or Float32Array)'
which happens because Chrome implements [2], which introduces a 4-argument
`createImageData()` overload. This overload ends up being used by the test
due to the following call:
CanvasRenderingContext2D.createImageData(5, 5, undefined, undefined)
Avoid passing a constant number of arguments when we are testing multiple
calls that take a variable number of arguments by using the spread syntax
instead.
[1] https://wpt.fyi/results/WebIDL/current-realm.html?run_id=
353010001&run_id=
376180001&run_id=
381940001&run_id=
376170001
[2] https://github.com/WICG/canvas-color-space/
--
wpt-commits:
6ac023bb7f669cb9be340e1c184dfd4d4226e661
wpt-pr: 20358