File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ bench
2020 await WebAssembly . compile ( bytes ) ;
2121 } )
2222 . add ( "wasm instantiate" , async ( ) => {
23- const memory = new WebAssembly . Memory ( { initial : 2 } ) ;
23+ let memory = new WebAssembly . Memory ( { initial : 2 } ) ;
2424 await WebAssembly . instantiate ( compiled , {
2525 env : { memory } ,
2626 clay : {
2727 measureTextFunction ( ) { } ,
2828 queryScrollOffsetFunction ( ret : number ) {
29- const v = new DataView ( memory . buffer ) ;
29+ let v = new DataView ( memory . buffer ) ;
3030 v . setFloat32 ( ret , 0 , true ) ;
3131 v . setFloat32 ( ret + 4 , 0 , true ) ;
3232 } ,
4343 await createTerm ( { width : 80 , height : 24 } ) ;
4444 } )
4545 . add ( "startup: createTerm + first render (80x24)" , async ( ) => {
46- const term = await createTerm ( { width : 80 , height : 24 } ) ;
46+ let term = await createTerm ( { width : 80 , height : 24 } ) ;
4747 term . render ( helloOps ) ;
4848 } ) ;
4949
You can’t perform that action at this time.
0 commit comments