function polyfill ( ) { if ( typeof Uint8Array === 'function' && ! Uint8Array . prototype . slice ) { Object . defineProperty ( Uint8Array . prototype , 'slice' , { value : Array . prototype . slice , } ) ; } } export default polyfill ;