{"ScriptPreparationCode":"ab = new ArrayBuffer(1000*4);\r\nu32 = new Uint32Array(ab);\r\ncode1 = \u0060return function foo() {\r\n for (let i = 0; i \u003C localCount; i\u002B\u002B) {\r\n localArr[localCount]\u002B\u002B;\r\n }\r\n}\u0060;\r\nfnConstructor = new Function(\u0022localArr\u0022, \u0022localCount\u0022, code1)(u32, 100);\r\n\r\ncode2 = \u0060return function foo(argArr, argCount) {\r\n for (let i = 0; i \u003C argCount; i\u002B\u002B) {\r\n argArr[argCount]\u002B\u002B;\r\n }\r\n}\u0060;\r\nfnWithArgs = new Function(code2)();","TestCases":[{"Name":"Pass arg via constructor","Code":"fnConstructor();","IsDeferred":false},{"Name":"Pass args to function.","Code":"fnWithArgs(u32, 100);","IsDeferred":false}]}