File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ def garbage_collector(args):
620
620
if globals .pendingAsync is None or not len (globals .pendingAsync ):
621
621
if globals .snapshot is None :
622
622
globals .snapshot = Object (snapshot ).keep ()
623
- globals .setTimeout (globals .snapshot .toRef (), JSON .fromInteger (0 ))
623
+ globals .setTimeout (globals .snapshot .toRef ()) # , JSON.fromInteger(0))
624
624
globals .collector_id = None
625
625
626
626
@@ -631,9 +631,9 @@ def run_garbage_collector():
631
631
#if globals.collector_function is None:
632
632
globals .collector_function = json .fromFunction (garbage_collector )
633
633
if globals .setTimeout is None :
634
- globals .setTimeout = Object ('setTimeout' ) .keep ().toFunction ()
634
+ globals .setTimeout = Object ('Promise.resolve()' )[ 'then' ] .keep ().toFunction ()
635
635
setTimeout = globals .setTimeout
636
- timeout = setTimeout (globals .collector_function , json .fromInteger (0 ))
636
+ timeout = setTimeout (globals .collector_function ) # , json.fromInteger(0))
637
637
globals .collector_id = timeout .toString ()
638
638
639
639
method_template = '''
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
var copy ;
3
3
return function ( ) {
4
- if ( ! copy ) copy = new Uint32Array ( global . Module . wasmMemory . buffer . slice ( ) ) ;
5
- var view = new Uint32Array ( global . Module . wasmMemory . buffer ) ;
4
+ if ( ! copy ) copy = new Uint8Array ( global . Module . wasmMemory . buffer . slice ( ) ) ;
5
+ var view = new Uint8Array ( global . Module . wasmMemory . buffer ) ;
6
6
view . fill ( 0 ) ;
7
7
view . set ( copy ) ;
8
8
}
You can’t perform that action at this time.
0 commit comments