Simplify make.typed.bufferSource
This commit is contained in:
parent
1020793e96
commit
d99799e430
1 changed files with 8 additions and 4 deletions
|
@ -105,9 +105,13 @@ make.typed = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bufferSource: function () {
|
bufferSource: function () {
|
||||||
return random.choose([
|
switch (random.number(4)) {
|
||||||
[1, [this.arrayBuffer, this.dataView]],
|
case 0:
|
||||||
[1, [this.typedArray]]
|
return this.arrayBuffer()
|
||||||
])
|
case 1:
|
||||||
|
return this.dataView()
|
||||||
|
default:
|
||||||
|
return this.typedArray()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue