mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
delete apply.ts
This commit is contained in:
parent
e4b5691ebf
commit
cccf051bbc
1 changed files with 0 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
||||||
import { ScramjetClient } from "../client";
|
|
||||||
|
|
||||||
export default function (client: ScramjetClient, self: typeof globalThis) {
|
|
||||||
// do we need this?
|
|
||||||
client.Proxy(
|
|
||||||
[
|
|
||||||
"Function.prototype.call",
|
|
||||||
"Function.prototype.bind",
|
|
||||||
"Function.prototype.apply",
|
|
||||||
],
|
|
||||||
{
|
|
||||||
apply(ctx) {
|
|
||||||
if (ctx.args[0] === client.windowProxy) ctx.args[0] = self;
|
|
||||||
if (ctx.args[0] === client.documentProxy) ctx.args[0] = self.document;
|
|
||||||
},
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue