mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 07:20:02 -04:00
chore: prettier
This commit is contained in:
parent
70779ffe5b
commit
a94f969a7b
6 changed files with 13 additions and 15 deletions
|
@ -22,14 +22,13 @@ export function createGlobalProxy(
|
|||
return new Proxy(self, {
|
||||
get(target, prop) {
|
||||
if (prop === "location") return client.locationProxy;
|
||||
if (typeof prop === "string" && UNSAFE_GLOBALS.includes(prop)) return client.wrapfn(self[prop]);
|
||||
if (typeof prop === "string" && UNSAFE_GLOBALS.includes(prop))
|
||||
return client.wrapfn(self[prop]);
|
||||
if (prop === "$scramjet") return;
|
||||
if (prop === "eval") return indirectEval.bind(client);
|
||||
|
||||
const value = Reflect.get(target, prop);
|
||||
if (typeof prop === "string" && UNSAFE_GLOBALS.includes(prop))
|
||||
return client.wrapfn(value);
|
||||
|
||||
|
||||
return value;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue