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 () {
|
||||
return random.choose([
|
||||
[1, [this.arrayBuffer, this.dataView]],
|
||||
[1, [this.typedArray]]
|
||||
])
|
||||
switch (random.number(4)) {
|
||||
case 0:
|
||||
return this.arrayBuffer()
|
||||
case 1:
|
||||
return this.dataView()
|
||||
default:
|
||||
return this.typedArray()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue