File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 6161 // types
6262 var types = {
6363 Uint8Array : typeof ( global [ 'Uint8Array' ] ) !== 'undefined' ? global . Uint8Array : Array ,
64+ Uint8ClampedArray : typeof ( global [ 'Uint8ClampedArray' ] ) !== 'undefined' ? global . Uint8ClampedArray : Array ,
6465 Uint32Array : typeof ( global [ 'Uint32Array' ] ) !== 'undefined' ? global . Uint32Array : Array ,
6566 Int16Array : typeof ( global [ 'Int16Array' ] ) !== 'undefined' ? global . Int16Array : Array ,
6667 Int32Array : typeof ( global [ 'Int32Array' ] ) !== 'undefined' ? global . Int32Array : Array
Original file line number Diff line number Diff line change 44 var Uint8Array = torque . types . Uint8Array ;
55 var Int32Array = torque . types . Int32Array ;
66 var Uint32Array = torque . types . Uint32Array ;
7+ var Uint8ClampedArray = torque . types . Uint8ClampedArray ;
78
89 // format('hello, {0}', 'rambo') -> "hello, rambo"
910 function format ( str ) {
8283 dates = ( 1 + maxDateSlots ) * rows . length ;
8384 }
8485
85- var type = this . options . cumulative ? Uint32Array : Uint8Array ;
86+ var type = this . options . cumulative ? Uint32Array : Uint8ClampedArray ;
8687
8788 // reserve memory for all the dates
8889 var timeIndex = new Int32Array ( maxDateSlots + 1 ) ; //index-size
You can’t perform that action at this time.
0 commit comments