Further cleanup in make.typed.any()

This commit is contained in:
pyoor 2017-09-13 16:31:04 -04:00
parent 91554d32a4
commit 1020793e96

View file

@ -69,7 +69,7 @@ make.typed = {
}
},
any: function () {
let value = random.choose([
return random.choose([
[1, [this.byte, this.octet]],
[1, [this.short, this.unsignedShort]],
[1, [this.long, this.unsignedLong]],
@ -77,7 +77,6 @@ make.typed = {
[1, [this.double, this.unrestrictedDouble]],
[1, [make.number.range, make.number.tiny]]
])
return value
},
arrayBuffer: function (byteLength = null) {
let length = (byteLength !== null) ? byteLength : this.unsignedShort()