Skip to content

Commit

Permalink
fix: add Uint8Array.prototype.fill to polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
seavan committed Dec 6, 2017
1 parent 2cd4e97 commit a224116
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ if (!Uint8Array.prototype.join) {
});
}

// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.fill
if (!Uint8Array.prototype.fill) {
Uint8Array.prototype.fill = Array.prototype.fill;
}

// global.location = global.location || { port: 80 }
var isDev = typeof __DEV__ === 'boolean' && __DEV__;
const env = process.env;
Expand Down

0 comments on commit a224116

Please sign in to comment.