File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2911,7 +2911,7 @@ addToLibrary({
2911
2911
// code paths as similar as possible on both sides.)
2912
2912
// -1 - code is the encoding of a proxied EM_ASM, as a negative number
2913
2913
// (positive numbers are non-EM_ASM calls).
2914
- return proxyToMainThread . apply ( null , [ - 1 - code , sync ] . concat ( args ) ) ;
2914
+ return proxyToMainThread ( - 1 - code , sync , ... args ) ;
2915
2915
}
2916
2916
#endif
2917
2917
#if ASSERTIONS
Original file line number Diff line number Diff line change @@ -957,8 +957,8 @@ var LibraryPThread = {
957
957
#if MEMORY64
958
958
// Calls proxyToMainThread but returns a bigint rather than a number
959
959
$proxyToMainThreadPtr__deps: ['$proxyToMainThread'],
960
- $proxyToMainThreadPtr: function( ) {
961
- return BigInt(proxyToMainThread.apply(null, arguments ));
960
+ $proxyToMainThreadPtr: (...args ) {
961
+ return BigInt(proxyToMainThread(...args ));
962
962
},
963
963
#endif
964
964
You can’t perform that action at this time.
0 commit comments