We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
new Function
1 parent e0b5f9f commit ee58484Copy full SHA for ee58484
src/lib/libhtml5_webgl.js
@@ -603,8 +603,7 @@ function handleWebGLProxying(funcs) {
603
funcs[i + '__deps'].push('$' + i + '_before_on_calling_thread');
604
funcBody = `${i}_before_on_calling_thread(${funcArgsString}); ` + funcBody;
605
}
606
- funcArgs.push(funcBody);
607
- funcs[i] = new (Function.prototype.bind.call(Function, Function, ...funcArgs));
+ funcs[i] = new Function(funcArgs, funcBody);
608
} else if (targetingOffscreenFramebuffer) {
609
// When targeting only OFFSCREEN_FRAMEBUFFER, unconditionally proxy all GL
610
// calls to main thread.
0 commit comments