Commit e79f94f9 authored by Tristan Cavelier's avatar Tristan Cavelier

new Uint8Array().buffer bug with PhantomJS fix

parent 6d3869e5
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
function Uint8Array(one) { // , two, three function Uint8Array(one) { // , two, three
/*jslint bitwise: true */ /*jslint bitwise: true */
this.buffer = this;
var i; var i;
if (one instanceof Uint8Array) { if (one instanceof Uint8Array) {
for (i = 0; i < one.length; i += 1) { for (i = 0; i < one.length; i += 1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment