Skip to content

Commit

Permalink
Implement byteLength on the typed array buffer class
Browse files Browse the repository at this point in the history
  • Loading branch information
robarnold committed May 4, 2011
1 parent 442db5b commit 2ea27bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/buffer.js
Expand Up @@ -591,6 +591,8 @@ Object.defineProperty(createTypedArray, '_charsWritten', {
get: function () { return Buffer._charsWritten; }
});

createTypedArray.byteLength = Buffer.byteLength;

if ('ArrayBuffer' in this) {
exports.Buffer = createTypedArray;
}

0 comments on commit 2ea27bf

Please sign in to comment.