Skip to content

Commit ac94cdf

Browse files
author
Tony Kovanen
committed
0.0.4
1 parent 5a7e0b8 commit ac94cdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function(arraybuffer, start, end) {
2121
}
2222

2323
var abv = new Uint8Array(arraybuffer);
24-
var result = Uint8Array(end - start);
24+
var result = new Uint8Array(end - start);
2525
for (var i = start, ii = 0; i < end; i++, ii++) {
2626
result[ii] = abv[i];
2727
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "arraybuffer.slice",
33
"description": "Exports a function for slicing ArrayBuffers (no polyfilling)",
4-
"version": "0.0.3",
4+
"version": "0.0.4",
55
"homepage": "https://github.com/rase-/arraybuffer.slice",
66
"dependencies": {},
77
"devDependencies": {

0 commit comments

Comments
 (0)