/**1* @license2* Copyright 2020 The Emscripten Authors3* SPDX-License-Identifier: MIT4*/56addToLibrary({7emscripten_get_exported_function__deps: ['$addFunction', '$UTF8ToString'],8emscripten_get_exported_function: (name) => {9name = UTF8ToString(name);10// Wasm backend does not use C name mangling on exports,11// so adjust for that manually.12if (name[0] == '_') name = name.slice(1);13var exportedFunc = wasmExports[name];14if (exportedFunc) {15// Note: addFunction automatically caches the created function pointer.16return addFunction(exportedFunc);17}18#if ASSERTIONS19err(`No exported function found by name "{exportedFunc}"`);20#endif21// implicit return 0;22}23});242526