diff --git a/src/sandbox/legacy/sandbox.ts b/src/sandbox/legacy/sandbox.ts index 384389c..0440f0c 100644 --- a/src/sandbox/legacy/sandbox.ts +++ b/src/sandbox/legacy/sandbox.ts @@ -122,6 +122,10 @@ export default class SingularProxySandbox implements SandBox { has(_: Window, p: string | number | symbol): boolean { return p in rawWindow; }, + + getOwnPropertyDescriptor(_: Window, p: PropertyKey): PropertyDescriptor | undefined { + return Object.getOwnPropertyDescriptor(rawWindow, p); + }, }); this.proxy = proxy;