@@ -2027,7 +2027,7 @@ mergeInto(LibraryManager.library, {
2027
2027
return 0 ;
2028
2028
} ,
2029
2029
2030
- getnameinfo__deps : [ '$Sockets' , '$DNS' , '$readSockaddr' ] ,
2030
+ getnameinfo__deps : [ '$Sockets' , '$DNS' , '$readSockaddr' , '$stringToUTF8' ] ,
2031
2031
getnameinfo : function ( sa , salen , node , nodelen , serv , servlen , flags ) {
2032
2032
var info = readSockaddr ( sa , salen ) ;
2033
2033
if ( info . errno ) {
@@ -2305,6 +2305,7 @@ mergeInto(LibraryManager.library, {
2305
2305
// Mark as `noleakcheck` otherwise lsan will report the last returned string
2306
2306
// as a leak.
2307
2307
emscripten_run_script_string__noleakcheck : true ,
2308
+ emscripten_run_script_string__deps : [ '$lengthBytesUTF8' , '$stringToUTF8' , 'malloc' ] ,
2308
2309
emscripten_run_script_string : function ( ptr ) {
2309
2310
{ { { makeEval ( "var s = eval(UTF8ToString(ptr));" ) } } }
2310
2311
if ( s == null ) {
@@ -2565,7 +2566,7 @@ mergeInto(LibraryManager.library, {
2565
2566
return callstack ;
2566
2567
} ,
2567
2568
2568
- emscripten_get_callstack__deps : [ '$getCallstack' ] ,
2569
+ emscripten_get_callstack__deps : [ '$getCallstack' , '$lengthBytesUTF8' , '$stringToUTF8' ] ,
2569
2570
emscripten_get_callstack : function ( flags , str , maxbytes ) {
2570
2571
// Use explicit calls to from64 rather then using the __sig
2571
2572
// magic here. This is because the __sig wrapper uses arrow function
@@ -2647,6 +2648,7 @@ mergeInto(LibraryManager.library, {
2647
2648
debugger ;
2648
2649
} ,
2649
2650
2651
+ emscripten_print_double__deps : [ '$stringToUTF8' , '$lengthBytesUTF8' ] ,
2650
2652
emscripten_print_double : function ( x , to , max ) {
2651
2653
var str = x + '' ;
2652
2654
if ( to ) return stringToUTF8 ( str , to , max ) ;
@@ -2887,6 +2889,7 @@ mergeInto(LibraryManager.library, {
2887
2889
return result ? result . column || 0 : 0 ;
2888
2890
} ,
2889
2891
2892
+ emscripten_get_module_name__deps : [ '$stringToUTF8' ] ,
2890
2893
emscripten_get_module_name : function ( buf , length ) {
2891
2894
#if MINIMAL_RUNTIME
2892
2895
return stringToUTF8 ( '{{{ TARGET_BASENAME }}}.wasm' , buf , length ) ;
@@ -3363,6 +3366,9 @@ mergeInto(LibraryManager.library, {
3363
3366
3364
3367
// Use program_invocation_short_name and program_invocation_name in compiled
3365
3368
// programs. This function is for implementing them.
3369
+ #if ! MINIMAL_RUNTIME
3370
+ _emscripten_get_progname__deps: [ '$stringToUTF8' ] ,
3371
+ #endif
3366
3372
_emscripten_get_progname : function ( str , len ) {
3367
3373
#if ! MINIMAL_RUNTIME
3368
3374
#if ASSERTIONS
@@ -3723,5 +3729,10 @@ DEFAULT_LIBRARY_FUNCS_TO_INCLUDE.push(
3723
3729
'$ccall' ,
3724
3730
'$cwrap' ,
3725
3731
'$ExitStatus' ,
3732
+ '$UTF8ArrayToString' ,
3733
+ '$UTF8ToString' ,
3734
+ '$stringToUTF8Array' ,
3735
+ '$stringToUTF8' ,
3736
+ '$lengthBytesUTF8' ,
3726
3737
) ;
3727
3738
#endif
0 commit comments