properly? handle getOwnPropertyDescriptor

This commit is contained in:
velzie 2024-08-25 20:17:45 -04:00
parent e8b9e04d46
commit 8d2ab5ac8b
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
6 changed files with 35 additions and 1 deletions

View file

@ -1,5 +1,6 @@
import { iswindow } from "..";
import { ScramjetClient } from "../client";
import { getOwnPropertyDescriptorHandler } from "../helpers";
import { unproxy } from "./unproxy";
const realOnEvent = Symbol.for("scramjet original onevent function");
@ -66,12 +67,14 @@ export default function (client: ScramjetClient, self: Self) {
return Reflect.get(target, prop, reciever);
},
getOwnPropertyDescriptor: getOwnPropertyDescriptorHandler,
});
}
}
return Reflect.apply(target, thisArg, argArray);
},
getOwnPropertyDescriptor: getOwnPropertyDescriptorHandler,
});
}