Skip to content

Commit a6625a4

Browse files
author
wanderer
authored
Merge pull request #29 from ewasm/fix/buffer
ensure buffers for browser
2 parents 50a5b5d + d984d62 commit a6625a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = class ModuleIterator {
4545
const size = Number(leb128.read(this._pipe))
4646
const body = this._pipe.read(size)
4747
const end = this._pipe.bytesRead
48-
const section = this._wasm.subarray(start, end)
48+
const section = this._wasm.slice(start, end)
4949
const index = this._sections.push(section) - 1
5050

5151
yield new Section(sectionType, body, this, index)

0 commit comments

Comments
 (0)