mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
kill snapshot.ts (untested)
This commit is contained in:
parent
9a39435c7d
commit
7f398cda17
7 changed files with 33 additions and 18 deletions
|
@ -4,7 +4,7 @@ import { rewriteJs } from "../shared";
|
|||
function rewriteFunction(ctx: ProxyCtx) {
|
||||
const stringifiedFunction = ctx.fn(...ctx.args).toString();
|
||||
|
||||
ctx.return(Function(`return ${rewriteJs(stringifiedFunction)}`)());
|
||||
ctx.return(ctx.fn(`return ${rewriteJs(stringifiedFunction)}`)());
|
||||
}
|
||||
|
||||
export default function (client: ScramjetClient, self: Self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue