()
| 2471 | dso.refcount = flags2.nodelete ? Infinity : 1; |
| 2472 | dso.global = flags2.global; |
| 2473 | function loadLibData() { |
| 2474 | if (handle2) { |
| 2475 | var data = LE_HEAP_LOAD_U32((handle2 + 28 >> 2) * 4); |
| 2476 | var dataSize = LE_HEAP_LOAD_U32((handle2 + 32 >> 2) * 4); |
| 2477 | if (data && dataSize) { |
| 2478 | var libData = HEAP8.slice(data, data + dataSize); |
| 2479 | return flags2.loadAsync ? Promise.resolve(libData) : libData; |
| 2480 | } |
| 2481 | } |
| 2482 | var libFile = locateFile(libName2); |
| 2483 | if (flags2.loadAsync) { |
| 2484 | return asyncLoad(libFile); |
| 2485 | } |
| 2486 | if (!readBinary) { |
| 2487 | throw new Error(`${libFile}: file not found, and synchronous loading of external files is not available`); |
| 2488 | } |
| 2489 | return readBinary(libFile); |
| 2490 | } |
| 2491 | __name(loadLibData, "loadLibData"); |
| 2492 | function getExports() { |
| 2493 | if (flags2.loadAsync) { |
no test coverage detected