mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
use call() more
This commit is contained in:
parent
95c080d3ca
commit
5790cfc1fb
3 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ import { ScramjetClient, ProxyCtx, Proxy } from "../client";
|
|||
import { rewriteJs } from "../../shared";
|
||||
|
||||
function rewriteFunction(ctx: ProxyCtx) {
|
||||
const stringifiedFunction = ctx.fn(...ctx.args).toString();
|
||||
const stringifiedFunction = ctx.call().toString();
|
||||
|
||||
ctx.return(ctx.fn(`return ${rewriteJs(stringifiedFunction)}`)());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue