mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
properly? handle getOwnPropertyDescriptor
This commit is contained in:
parent
e8b9e04d46
commit
8d2ab5ac8b
6 changed files with 35 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import { createDocumentProxy } from "./document";
|
||||
import { createGlobalProxy } from "./global";
|
||||
import { getOwnPropertyDescriptorHandler } from "./helpers";
|
||||
import { createLocationProxy } from "./location";
|
||||
import { CookieStore, decodeUrl } from "./shared";
|
||||
|
||||
|
@ -191,6 +192,7 @@ export class ScramjetClient {
|
|||
};
|
||||
}
|
||||
|
||||
h.getOwnPropertyDescriptor = getOwnPropertyDescriptorHandler;
|
||||
target[prop] = new Proxy(value, h);
|
||||
}
|
||||
Trap<T>(name: string | string[], descriptor: Trap<T>): PropertyDescriptor {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue