Skip to content

Commit

Permalink
Merge pull request #76 from gyh9457/fix/support-ie9
Browse files Browse the repository at this point in the history
fix: change const to var and remove useless variable
  • Loading branch information
eligrey committed Mar 6, 2020
2 parents b4f086d + 8708d66 commit 9f7eb54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Blob.js
Expand Up @@ -97,7 +97,6 @@
function stringEncode (string) {
var pos = 0
var len = string.length
var out = []
var Arr = global.Uint8Array || Array // Use byte array when possible

var at = 0 // output position
Expand Down Expand Up @@ -126,7 +125,7 @@
tlen *= (1.0 + (pos / string.length) * 2) // take 2x the remaining
tlen = (tlen >> 3) << 3 // 8 byte offset

const update = new Uint8Array(tlen)
var update = new Uint8Array(tlen)
update.set(target)
target = update
}
Expand Down

0 comments on commit 9f7eb54

Please sign in to comment.