@@ -562,7 +562,6 @@ var LibraryPThread = {
562562    worker . pthread_ptr  =  0 ; 
563563  } , 
564564
565-   __emscripten_thread_cleanup__sig : 'vp ', 
566565  __emscripten_thread_cleanup : function ( thread )  { 
567566    // Called when a thread needs to be cleaned up so it can be reused. 
568567    // A thread is considered reusable when it either returns from its 
@@ -735,7 +734,6 @@ var LibraryPThread = {
735734  // allocations from __pthread_create_js we could also remove this. 
736735  __pthread_create_js__noleakcheck : true , 
737736#endif
738-   __pthread_create_js__sig : 'ipppp' , 
739737  __pthread_create_js__deps : [ '$spawnThread' ,  'pthread_self' ,  '$pthreadCreateProxied' , 
740738#if OFFSCREENCANVAS_SUPPORT 
741739    'malloc' , 
@@ -947,9 +945,9 @@ var LibraryPThread = {
947945    _exit ( returnCode ) ; 
948946  } , 
949947
950-   emscripten_proxy_to_main_thread_js__deps : [ '$withStackSave' ,  '_emscripten_run_in_main_runtime_thread_js' ] , 
951-   emscripten_proxy_to_main_thread_js__docs : '/** @type{function(number, (number|boolean), ...(number|boolean))} */' , 
952-   emscripten_proxy_to_main_thread_js : function ( index ,  sync )  { 
948+   $proxyToMainThread__deps : [ '$withStackSave' ,  '_emscripten_run_in_main_runtime_thread_js' ] , 
949+   $proxyToMainThread__docs : '/** @type{function(number, (number|boolean), ...(number|boolean))} */' , 
950+   $proxyToMainThread : function ( index ,  sync )  { 
953951    // Additional arguments are passed after those two, which are the actual 
954952    // function arguments. 
955953    // The serialization buffer contains the number of call params, and then 
@@ -960,7 +958,7 @@ var LibraryPThread = {
960958#if ASSERTIONS 
961959    var  maxArgs  =  { { {  cDefs . EM_QUEUED_JS_CALL_MAX_ARGS  -  1  } } } ; 
962960    if  ( numCallArgs  >  maxArgs )  { 
963-       throw  'emscripten_proxy_to_main_thread_js : Too many arguments '  +  numCallArgs  +  ' to proxied function idx='  +  index  +  ', maximum supported is '  +  maxArgs ; 
961+       throw  'proxyToMainThread : Too many arguments '  +  numCallArgs  +  ' to proxied function idx='  +  index  +  ', maximum supported is '  +  maxArgs ; 
964962    } 
965963#endif
966964    // Allocate a buffer, which will be copied by the C code. 
@@ -994,29 +992,28 @@ var LibraryPThread = {
994992    } ) ; 
995993  } , 
996994
997-   emscripten_receive_on_main_thread_js_callArgs : '=[]' , 
995+   $ emscripten_receive_on_main_thread_js_callArgs : '=[]' , 
998996
999-   emscripten_receive_on_main_thread_js__sig : 'diip' , 
1000997  emscripten_receive_on_main_thread_js__deps : [ 
1001-     'emscripten_proxy_to_main_thread_js ' , 
1002-     'emscripten_receive_on_main_thread_js_callArgs' ] , 
998+     '$proxyToMainThread ' , 
999+     '$ emscripten_receive_on_main_thread_js_callArgs' ] , 
10031000  emscripten_receive_on_main_thread_js : function ( index ,  numCallArgs ,  args )  { 
10041001#if WASM_BIGINT 
10051002    numCallArgs  /=  2 ; 
10061003#endif
1007-     _emscripten_receive_on_main_thread_js_callArgs . length  =  numCallArgs ; 
1004+     emscripten_receive_on_main_thread_js_callArgs . length  =  numCallArgs ; 
10081005    var  b  =  args  >>  3 ; 
10091006    for  ( var  i  =  0 ;  i  <  numCallArgs ;  i ++ )  { 
10101007#if WASM_BIGINT 
10111008      if  ( HEAP64 [ b  +  2 * i ] )  { 
10121009        // It's a BigInt. 
1013-         _emscripten_receive_on_main_thread_js_callArgs [ i ]  =  HEAP64 [ b  +  2 * i  +  1 ] ; 
1010+         emscripten_receive_on_main_thread_js_callArgs [ i ]  =  HEAP64 [ b  +  2 * i  +  1 ] ; 
10141011      }  else  { 
10151012        // It's a Number. 
1016-         _emscripten_receive_on_main_thread_js_callArgs [ i ]  =  HEAPF64 [ b  +  2 * i  +  1 ] ; 
1013+         emscripten_receive_on_main_thread_js_callArgs [ i ]  =  HEAPF64 [ b  +  2 * i  +  1 ] ; 
10171014      } 
10181015#else
1019-       _emscripten_receive_on_main_thread_js_callArgs [ i ]  =  HEAPF64 [ b  +  i ] ; 
1016+       emscripten_receive_on_main_thread_js_callArgs [ i ]  =  HEAPF64 [ b  +  i ] ; 
10201017#endif
10211018    } 
10221019    // Proxied JS library funcs are encoded as positive values, and 
@@ -1030,7 +1027,7 @@ var LibraryPThread = {
10301027#if ASSERTIONS 
10311028    assert ( func . length  ==  numCallArgs ,  'Call args mismatch in emscripten_receive_on_main_thread_js' ) ; 
10321029#endif
1033-     return  func . apply ( null ,  _emscripten_receive_on_main_thread_js_callArgs ) ; 
1030+     return  func . apply ( null ,  emscripten_receive_on_main_thread_js_callArgs ) ; 
10341031  } , 
10351032
10361033  // TODO(sbc): Do we really need this to be dynamically settable from JS like this? 
@@ -1126,7 +1123,6 @@ var LibraryPThread = {
11261123  } , 
11271124
11281125#if MAIN_MODULE 
1129-   _emscripten_thread_exit_joinable__sig: 'vp' , 
11301126  _emscripten_thread_exit_joinable : function ( thread )  { 
11311127    // Called when a thread exits and is joinable.  We mark these threads 
11321128    // as finished, which means that are in state where are no longer actually 
@@ -1152,7 +1148,6 @@ var LibraryPThread = {
11521148  // TODO(sbc): Should we make a new form of __proxy attribute for JS library 
11531149  // function that run asynchronously like but blocks the caller until they are 
11541150  // done.  Perhaps "sync_with_ctx"? 
1155-   _emscripten_dlsync_threads_async__sig : 'vppp' , 
11561151  _emscripten_dlsync_threads_async__deps : [ '_emscripten_proxy_dlsync_async' ,  'emscripten_promise_create' ,  '$getPromise' ] , 
11571152  _emscripten_dlsync_threads_async : function ( caller ,  callback ,  ctx )  { 
11581153#if PTHREADS_DEBUG 
@@ -1234,7 +1229,6 @@ var LibraryPThread = {
12341229  } , 
12351230
12361231  _emscripten_thread_mailbox_await__deps : [ '$checkMailbox' ] , 
1237-   _emscripten_thread_mailbox_await__sig : 'vp' , 
12381232  _emscripten_thread_mailbox_await : function ( pthread_ptr )  { 
12391233    if  ( typeof  Atomics . waitAsync  ===  'function' )  { 
12401234      // TODO: How to make this work with wasm64? 
@@ -1249,7 +1243,6 @@ var LibraryPThread = {
12491243  } , 
12501244
12511245  _emscripten_notify_mailbox_postmessage__deps : [ '$checkMailbox' ] , 
1252-   _emscripten_notify_mailbox_postmessage__sig : 'vppp' , 
12531246  _emscripten_notify_mailbox_postmessage : function ( targetThreadId , 
12541247                                                   currThreadId , 
12551248                                                   mainThreadId )  { 
0 commit comments