Skip to content

Commit

Permalink
Remove 'window' in py2js.js (broke web worker test)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuentel committed Jan 19, 2024
1 parent bd7ba74 commit 725c175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/src/py2js.js
Original file line number Diff line number Diff line change
Expand Up @@ -8881,7 +8881,7 @@ $B.py2js = function(src, module, locals_id, parent_scope){
}

var _ast,
t0 = window.performance.now()
t0 = globalThis.performance.now()

if($B.parser_to_ast){
console.log('use standard parser')
Expand All @@ -8892,7 +8892,7 @@ $B.py2js = function(src, module, locals_id, parent_scope){
dispatch_tokens(root)
_ast = root.ast()
}
$B.parse_time += window.performance.now() - t0
$B.parse_time += globalThis.performance.now() - t0
var future = $B.future_features(_ast, filename)
var symtable = $B._PySymtable_Build(_ast, filename, future)
var js_obj = $B.js_from_root({ast: _ast,
Expand Down

0 comments on commit 725c175

Please sign in to comment.