🐛 add proxy getOwnPropertyDescriptor in legacySandbox (#1074)
This commit is contained in:
parent
c52394a8b6
commit
d12c05807d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user