Further cleanup in make.typed.any()
This commit is contained in:
parent
91554d32a4
commit
1020793e96
1 changed files with 1 additions and 2 deletions
|
@ -69,7 +69,7 @@ make.typed = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
any: function () {
|
any: function () {
|
||||||
let value = random.choose([
|
return random.choose([
|
||||||
[1, [this.byte, this.octet]],
|
[1, [this.byte, this.octet]],
|
||||||
[1, [this.short, this.unsignedShort]],
|
[1, [this.short, this.unsignedShort]],
|
||||||
[1, [this.long, this.unsignedLong]],
|
[1, [this.long, this.unsignedLong]],
|
||||||
|
@ -77,7 +77,6 @@ make.typed = {
|
||||||
[1, [this.double, this.unrestrictedDouble]],
|
[1, [this.double, this.unrestrictedDouble]],
|
||||||
[1, [make.number.range, make.number.tiny]]
|
[1, [make.number.range, make.number.tiny]]
|
||||||
])
|
])
|
||||||
return value
|
|
||||||
},
|
},
|
||||||
arrayBuffer: function (byteLength = null) {
|
arrayBuffer: function (byteLength = null) {
|
||||||
let length = (byteLength !== null) ? byteLength : this.unsignedShort()
|
let length = (byteLength !== null) ? byteLength : this.unsignedShort()
|
||||||
|
|
Loading…
Reference in a new issue