refactor: use more appropriate array methods (#39321)
This commit is contained in:
parent
7686d1c379
commit
c5e50e4882
3 changed files with 5 additions and 5 deletions
|
@ -442,7 +442,7 @@ function parseRIFF (string) {
|
|||
// basically, the only purpose is for encoding "Duration", which is encoded as
|
||||
// a double (considerably more difficult to encode than an integer)
|
||||
function doubleToString (num) {
|
||||
return [].slice.call(
|
||||
return Array.prototype.slice.call(
|
||||
new Uint8Array(
|
||||
(
|
||||
new Float64Array([num]) // create a float64 array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue