mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
it's not that deep you can stop yelling at me now
This commit is contained in:
parent
8b17059cc9
commit
3ece6a555e
1 changed files with 4 additions and 4 deletions
|
@ -3,13 +3,13 @@ import { SCRAMJETCLIENT } from "../../symbols";
|
|||
import { ScramjetClient } from "../client";
|
||||
import { config } from "../../shared";
|
||||
// import { argdbg } from "./err";
|
||||
// import { indirectEval } from "./eval";
|
||||
import { indirectEval } from "./eval";
|
||||
|
||||
export function createWrapFn(client: ScramjetClient, self: typeof globalThis) {
|
||||
return function (identifier: any) {
|
||||
if (identifier === self.location) {
|
||||
return client.locationProxy;
|
||||
}
|
||||
if (identifier === self) return client.globalProxy;
|
||||
if (identifier === self.location) return client.locationProxy;
|
||||
if (identifier === eval) return indirectEval;
|
||||
|
||||
if (iswindow) {
|
||||
if (identifier === self.parent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue