File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -484,9 +484,7 @@ class WPTRunner {
484484 pretendGlobalThisAs ( name ) {
485485 switch ( name ) {
486486 case 'Window' : {
487- this . globalThisInitScripts . push (
488- `global.Window = Object.getPrototypeOf(globalThis).constructor;
489- self.GLOBAL.isWorker = () => false;` ) ;
487+ this . globalThisInitScripts . push ( 'globalThis.Window = Object.getPrototypeOf(globalThis).constructor;' ) ;
490488 this . loadLazyGlobals ( ) ;
491489 break ;
492490 }
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ const { WPTRunner } = require('../common/wpt');
55
66const runner = new WPTRunner ( 'hr-time' ) ;
77
8+ runner . setInitScript ( `
9+ self.GLOBAL.isWorker = () => false;
10+ ` ) ;
811runner . pretendGlobalThisAs ( 'Window' ) ;
912
1013runner . runJsTests ( ) ;
You can’t perform that action at this time.
0 commit comments