Skip to content

Commit c655514

Browse files
committed
test: add isShadowRealm property to global.GLOBAL to avoid wpt test crash
1 parent 0a13097 commit c655514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/common/wpt/worker.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const resource = new ResourceLoader(workerData.wptPath);
88

99
global.self = global;
1010
global.GLOBAL = {
11-
isWindow() { return false; }
11+
isWindow() { return false; },
12+
isShadowRealm() { return false; }
1213
};
1314
global.require = require;
1415

0 commit comments

Comments
 (0)