Skip to content

Commit

Permalink
Merge pull request #1419 from w3c/use-new-for-ArrayBuffer
Browse files Browse the repository at this point in the history
minor fix to single-byte-encoder.html
  • Loading branch information
sideshowbarker committed Nov 26, 2014
2 parents 2d41a5d + a2cf752 commit c311e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encoding/single-byte-decoder.html
Expand Up @@ -121,8 +121,8 @@
}

// For TextDecoder tests
var buffer = ArrayBuffer(255),
view = Uint8Array(buffer)
var buffer = new ArrayBuffer(255),
view = new Uint8Array(buffer)
for(var i = 0, l = view.byteLength; i < l; i++) {
view[i] = i
}
Expand Down

0 comments on commit c311e18

Please sign in to comment.