mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Replace some Array.prototype
-usage with spread syntax
We have a few, quite old, call-sites that use the `Array.prototype`-format and which can now be replaced with spread syntax instead.
This commit is contained in:
parent
91bdcd8b20
commit
6538409282
3 changed files with 6 additions and 17 deletions
|
@ -419,7 +419,7 @@ describe("function", function () {
|
|||
for (const { input, output } of samples) {
|
||||
const out = new Float32Array(output.length);
|
||||
fn(input, 0, out, 0);
|
||||
expect(Array.prototype.slice.call(out, 0)).toEqual(output);
|
||||
expect(Array.from(out)).toEqual(output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue