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:
parent
091d33ccd2
commit
e36ca3a23e
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue