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