set local arguments to undefined

not a proper fix, can still be accessed with inner function arguments.callee.caller.arguments
This commit is contained in:
SArpnt 2024-08-08 22:51:28 -04:00
parent 091d33ccd2
commit e36ca3a23e
Signed by: SArpnt
SSH key fingerprint: SHA256:iDMeic8KkqqEsN4wODlgsk1d/oW1ojZ/cu/MEWyfLBw

View file

@ -170,8 +170,8 @@ class BytebeatProcessor extends AudioWorkletProcessor {
// create shortened Math functions and other things for compatibility
const params: string[] = Object.getOwnPropertyNames(Math);
const values: any[] = params.map(k => Math[k as keyof Math]);
params.push("int", "window");
values.push(Math.floor, globalThis);
params.push("int", "window", "arguments");
values.push(Math.floor, globalThis, undefined);
deleteGlobals();