Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
test(panel): let the stand-in global fall through to the real one
raymondchinsaaa6e6403e5f
diff --git a/dylib/tests/panel-behavior/harness.js b/dylib/tests/panel-behavior/harness.jsindex 77784b9..bc2b91c 100644--- a/dylib/tests/panel-behavior/harness.js+++ b/dylib/tests/panel-behavior/harness.js@@ -25,7 +25,9 @@ const FORMS = {statement: { arg: 'statement', react: 'R0', barrel: 'B0' },};-function panel(emit, form, globals = { document: { documentElement: { lang: 'en' } } }) {+// The stand-in global falls through to the real one, so a test's globalThis.MSCXFx still reaches the panel.+function panel(emit, form, globals = Object.assign(Object.create(globalThis),+ { document: { documentElement: { lang: 'en' } } })) {const raw = execFileSync(emit, [form], { encoding: 'utf8' }).trim();const src = form === 'component'? 'var ' + raw.replace(/,$/, '')