(sym)
| 136 | #endif |
| 137 | |
| 138 | function missingLibrarySymbol(sym) { |
| 139 | #if !MODULARIZE |
| 140 | hookGlobalSymbolAccess(sym, () => { |
| 141 | // Can't `abort()` here because it would break code that does runtime |
| 142 | // checks. e.g. `if (typeof SDL === 'undefined')`. |
| 143 | var msg = `\`${sym}\` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line`; |
| 144 | // DEFAULT_LIBRARY_FUNCS_TO_INCLUDE requires the name as it appears in |
| 145 | // library.js, which means $name for a JS name with no prefix, or name |
| 146 | // for a JS name like _name. |
| 147 | var librarySymbol = sym; |
| 148 | if (!librarySymbol.startsWith('_')) { |
| 149 | librarySymbol = '$' + sym; |
| 150 | } |
| 151 | msg += ` (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE='${librarySymbol}')`; |
| 152 | if (isExportedByForceFilesystem(sym)) { |
| 153 | msg += '. Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you'; |
| 154 | } |
| 155 | warnOnce(msg); |
| 156 | }); |
| 157 | #endif |
| 158 | |
| 159 | // Any symbol that is not included from the JS library is also (by definition) |
| 160 | // not exported on the Module object. |
| 161 | unexportedRuntimeSymbol(sym); |
| 162 | } |
| 163 | |
| 164 | function unexportedRuntimeSymbol(sym) { |
| 165 | #if PTHREADS |
nothing calls this directly
no test coverage detected