Simplify make.typed.bufferSource

This commit is contained in:
pyoor 2017-09-13 16:44:14 -04:00
parent 1020793e96
commit d99799e430

View file

@ -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()
}
}
}