Skip to content

Commit

Permalink
fix(android): Uint8Array join polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
seavan committed Feb 16, 2017
1 parent c1271e1 commit 68dbea1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ if (typeof process === 'undefined') {
process.browser = false
if (typeof Buffer === 'undefined') global.Buffer = require('buffer').Buffer

// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.join
if (!Uint8Array.prototype.join) {
Object.defineProperty(Uint8Array.prototype, 'join', {
value: Array.prototype.join
});
}

// global.location = global.location || { port: 80 }
var isDev = typeof __DEV__ === 'boolean' && __DEV__
process.env['NODE_ENV'] = isDev ? 'development' : 'production'
Expand Down

0 comments on commit 68dbea1

Please sign in to comment.