Skip to content

Commit

Permalink
🐛 add proxy getOwnPropertyDescriptor in legacySandbox (umijs#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deturium committed Nov 16, 2020
1 parent c74228c commit 48b4ee7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sandbox/legacy/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 48b4ee7

Please sign in to comment.