e57-js 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/libe57-js.js CHANGED
@@ -1130,7 +1130,7 @@ var PThread = {
1130
1130
  }
1131
1131
  },
1132
1132
  initMainThread() {
1133
- var pthreadPoolSize = 8;
1133
+ var pthreadPoolSize = 2;
1134
1134
  // Start loading up the Worker pool, if requested.
1135
1135
  while (pthreadPoolSize--) {
1136
1136
  PThread.allocateUnusedWorker();
@@ -1585,6 +1585,41 @@ var findStringEnd = (heapOrArray, idx, maxBytesToRead, ignoreNul) => {
1585
1585
 
1586
1586
  var ___assert_fail = (condition, filename, line, func) => abort(`Assertion failed: ${UTF8ToString(condition)}, at: ` + [ filename ? UTF8ToString(filename) : "unknown filename", line, func ? UTF8ToString(func) : "unknown function" ]);
1587
1587
 
1588
+ var exceptionCaught = [];
1589
+
1590
+ var uncaughtExceptionCount = 0;
1591
+
1592
+ var ___cxa_begin_catch = ptr => {
1593
+ var info = new ExceptionInfo(ptr);
1594
+ if (!info.get_caught()) {
1595
+ info.set_caught(true);
1596
+ uncaughtExceptionCount--;
1597
+ }
1598
+ info.set_rethrown(false);
1599
+ exceptionCaught.push(info);
1600
+ return ___cxa_get_exception_ptr(ptr);
1601
+ };
1602
+
1603
+ var ___cxa_end_catch = () => {
1604
+ // Clear state flag.
1605
+ _setThrew(0, 0);
1606
+ assert(exceptionCaught.length > 0);
1607
+ // Call destructor if one is registered then clear it.
1608
+ var info = exceptionCaught.pop();
1609
+ ___cxa_decrement_exception_refcount(info.excPtr);
1610
+ };
1611
+
1612
+ var findMatchingCatch = args => {
1613
+ setTempRet0(0);
1614
+ return 0;
1615
+ };
1616
+
1617
+ var ___cxa_find_matching_catch_2 = () => findMatchingCatch([]);
1618
+
1619
+ var ___cxa_find_matching_catch_3 = arg0 => findMatchingCatch([ arg0 ]);
1620
+
1621
+ var ___cxa_find_matching_catch_4 = (arg0, arg1) => findMatchingCatch([ arg0, arg1 ]);
1622
+
1588
1623
  class ExceptionInfo {
1589
1624
  // excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
1590
1625
  constructor(excPtr) {
@@ -1631,8 +1666,6 @@ class ExceptionInfo {
1631
1666
  }
1632
1667
  }
1633
1668
 
1634
- var uncaughtExceptionCount = 0;
1635
-
1636
1669
  var ___cxa_throw = (ptr, type, destructor) => {
1637
1670
  var info = new ExceptionInfo(ptr);
1638
1671
  // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
@@ -1686,6 +1719,10 @@ var ___pthread_create_js = (pthread_ptr, attr, startRoutine, arg) => {
1686
1719
  return spawnThread(threadParams);
1687
1720
  };
1688
1721
 
1722
+ var ___resumeException = ptr => {
1723
+ assert(false, "Exception thrown, but exception catching is not enabled. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.");
1724
+ };
1725
+
1689
1726
  var initRandomFill = () => {
1690
1727
  // This block is not needed on v19+ since crypto.getRandomValues is builtin
1691
1728
  if (ENVIRONMENT_IS_NODE) {
@@ -8383,6 +8420,8 @@ function _getaddrinfo(node, service, hint, out) {
8383
8420
  return 0;
8384
8421
  }
8385
8422
 
8423
+ var _llvm_eh_typeid_for = type => type;
8424
+
8386
8425
  var _random_get = (buffer, size) => randomFill((growMemViews(), HEAPU8).subarray(buffer, buffer + size));
8387
8426
 
8388
8427
  var FS_createPath = (...args) => FS.createPath(...args);
@@ -8469,11 +8508,11 @@ Module["FS_createDataFile"] = FS_createDataFile;
8469
8508
 
8470
8509
  Module["FS_createLazyFile"] = FS_createLazyFile;
8471
8510
 
8472
- var missingLibrarySymbols = [ "writeI53ToI64", "writeI53ToI64Clamped", "writeI53ToI64Signaling", "writeI53ToU64Clamped", "writeI53ToU64Signaling", "readI53FromI64", "readI53FromU64", "convertI32PairToI53", "convertI32PairToI53Checked", "convertU32PairToI53", "getTempRet0", "setTempRet0", "withStackSave", "readEmAsmArgs", "jstoi_q", "autoResumeAudioContext", "getDynCaller", "dynCall", "runtimeKeepalivePop", "asmjsMangle", "HandleAllocator", "addOnInit", "addOnPostCtor", "addOnPreMain", "addOnExit", "STACK_SIZE", "STACK_ALIGN", "POINTER_SIZE", "ASSERTIONS", "ccall", "cwrap", "convertJsFunctionToWasm", "getEmptyTableSlot", "updateTableMap", "getFunctionAddress", "addFunction", "removeFunction", "intArrayToString", "stringToAscii", "stringToNewUTF8", "stringToUTF8OnStack", "writeArrayToMemory", "registerKeyEventCallback", "maybeCStringToJsString", "findEventTarget", "getBoundingClientRect", "fillMouseEventData", "registerMouseEventCallback", "registerWheelEventCallback", "registerUiEventCallback", "registerFocusEventCallback", "fillDeviceOrientationEventData", "registerDeviceOrientationEventCallback", "fillDeviceMotionEventData", "registerDeviceMotionEventCallback", "screenOrientation", "fillOrientationChangeEventData", "registerOrientationChangeEventCallback", "fillFullscreenChangeEventData", "registerFullscreenChangeEventCallback", "JSEvents_requestFullscreen", "JSEvents_resizeCanvasForFullscreen", "registerRestoreOldStyle", "hideEverythingExceptGivenElement", "restoreHiddenElements", "setLetterbox", "softFullscreenResizeWebGLRenderTarget", "doRequestFullscreen", "fillPointerlockChangeEventData", "registerPointerlockChangeEventCallback", "registerPointerlockErrorEventCallback", "requestPointerLock", "fillVisibilityChangeEventData", "registerVisibilityChangeEventCallback", "registerTouchEventCallback", "fillGamepadEventData", "registerGamepadEventCallback", "registerBeforeUnloadEventCallback", "fillBatteryEventData", "registerBatteryEventCallback", "setCanvasElementSizeCallingThread", "setCanvasElementSizeMainThread", "setCanvasElementSize", "getCanvasSizeCallingThread", "getCanvasSizeMainThread", "getCanvasElementSize", "jsStackTrace", "getCallstack", "convertPCtoSourceLocation", "wasiRightsToMuslOFlags", "wasiOFlagsToMuslOFlags", "safeSetTimeout", "setImmediateWrapped", "safeRequestAnimationFrame", "clearImmediateWrapped", "registerPostMainLoop", "registerPreMainLoop", "getPromise", "makePromise", "idsToPromises", "makePromiseCallback", "findMatchingCatch", "incrementUncaughtExceptionCount", "decrementUncaughtExceptionCount", "Browser_asyncPrepareDataCounter", "isLeapYear", "ydayFromDate", "arraySum", "addDays", "FS_mkdirTree", "_setNetworkCallback", "heapObjectForWebGLType", "toTypedArrayIndex", "webgl_enable_ANGLE_instanced_arrays", "webgl_enable_OES_vertex_array_object", "webgl_enable_WEBGL_draw_buffers", "webgl_enable_WEBGL_multi_draw", "webgl_enable_EXT_polygon_offset_clamp", "webgl_enable_EXT_clip_control", "webgl_enable_WEBGL_polygon_mode", "emscriptenWebGLGet", "computeUnpackAlignedImageSize", "colorChannelsInGlTextureFormat", "emscriptenWebGLGetTexPixelData", "emscriptenWebGLGetUniform", "webglGetUniformLocation", "webglPrepareUniformLocationsBeforeFirstUse", "webglGetLeftBracePos", "emscriptenWebGLGetVertexAttrib", "__glGetActiveAttribOrUniform", "writeGLArray", "emscripten_webgl_destroy_context_before_on_calling_thread", "registerWebGlEventCallback", "runAndAbortIfError", "ALLOC_NORMAL", "ALLOC_STACK", "allocate", "writeStringToMemory", "writeAsciiToMemory", "allocateUTF8", "allocateUTF8OnStack", "demangle", "stackTrace", "getNativeTypeSize", "getFunctionArgsName", "createJsInvokerSignature", "PureVirtualError", "registerInheritedInstance", "unregisterInheritedInstance", "getInheritedInstanceCount", "getLiveInheritedInstances", "setDelayFunction", "count_emval_handles" ];
8511
+ var missingLibrarySymbols = [ "writeI53ToI64", "writeI53ToI64Clamped", "writeI53ToI64Signaling", "writeI53ToU64Clamped", "writeI53ToU64Signaling", "readI53FromI64", "readI53FromU64", "convertI32PairToI53", "convertI32PairToI53Checked", "convertU32PairToI53", "getTempRet0", "setTempRet0", "withStackSave", "readEmAsmArgs", "jstoi_q", "autoResumeAudioContext", "getDynCaller", "dynCall", "runtimeKeepalivePop", "asmjsMangle", "HandleAllocator", "addOnInit", "addOnPostCtor", "addOnPreMain", "addOnExit", "STACK_SIZE", "STACK_ALIGN", "POINTER_SIZE", "ASSERTIONS", "ccall", "cwrap", "convertJsFunctionToWasm", "getEmptyTableSlot", "updateTableMap", "getFunctionAddress", "addFunction", "removeFunction", "intArrayToString", "stringToAscii", "stringToNewUTF8", "stringToUTF8OnStack", "writeArrayToMemory", "registerKeyEventCallback", "maybeCStringToJsString", "findEventTarget", "getBoundingClientRect", "fillMouseEventData", "registerMouseEventCallback", "registerWheelEventCallback", "registerUiEventCallback", "registerFocusEventCallback", "fillDeviceOrientationEventData", "registerDeviceOrientationEventCallback", "fillDeviceMotionEventData", "registerDeviceMotionEventCallback", "screenOrientation", "fillOrientationChangeEventData", "registerOrientationChangeEventCallback", "fillFullscreenChangeEventData", "registerFullscreenChangeEventCallback", "JSEvents_requestFullscreen", "JSEvents_resizeCanvasForFullscreen", "registerRestoreOldStyle", "hideEverythingExceptGivenElement", "restoreHiddenElements", "setLetterbox", "softFullscreenResizeWebGLRenderTarget", "doRequestFullscreen", "fillPointerlockChangeEventData", "registerPointerlockChangeEventCallback", "registerPointerlockErrorEventCallback", "requestPointerLock", "fillVisibilityChangeEventData", "registerVisibilityChangeEventCallback", "registerTouchEventCallback", "fillGamepadEventData", "registerGamepadEventCallback", "registerBeforeUnloadEventCallback", "fillBatteryEventData", "registerBatteryEventCallback", "setCanvasElementSizeCallingThread", "setCanvasElementSizeMainThread", "setCanvasElementSize", "getCanvasSizeCallingThread", "getCanvasSizeMainThread", "getCanvasElementSize", "jsStackTrace", "getCallstack", "convertPCtoSourceLocation", "wasiRightsToMuslOFlags", "wasiOFlagsToMuslOFlags", "safeSetTimeout", "setImmediateWrapped", "safeRequestAnimationFrame", "clearImmediateWrapped", "registerPostMainLoop", "registerPreMainLoop", "getPromise", "makePromise", "idsToPromises", "makePromiseCallback", "incrementUncaughtExceptionCount", "decrementUncaughtExceptionCount", "Browser_asyncPrepareDataCounter", "isLeapYear", "ydayFromDate", "arraySum", "addDays", "FS_mkdirTree", "_setNetworkCallback", "heapObjectForWebGLType", "toTypedArrayIndex", "webgl_enable_ANGLE_instanced_arrays", "webgl_enable_OES_vertex_array_object", "webgl_enable_WEBGL_draw_buffers", "webgl_enable_WEBGL_multi_draw", "webgl_enable_EXT_polygon_offset_clamp", "webgl_enable_EXT_clip_control", "webgl_enable_WEBGL_polygon_mode", "emscriptenWebGLGet", "computeUnpackAlignedImageSize", "colorChannelsInGlTextureFormat", "emscriptenWebGLGetTexPixelData", "emscriptenWebGLGetUniform", "webglGetUniformLocation", "webglPrepareUniformLocationsBeforeFirstUse", "webglGetLeftBracePos", "emscriptenWebGLGetVertexAttrib", "__glGetActiveAttribOrUniform", "writeGLArray", "emscripten_webgl_destroy_context_before_on_calling_thread", "registerWebGlEventCallback", "runAndAbortIfError", "ALLOC_NORMAL", "ALLOC_STACK", "allocate", "writeStringToMemory", "writeAsciiToMemory", "allocateUTF8", "allocateUTF8OnStack", "demangle", "stackTrace", "getNativeTypeSize", "getFunctionArgsName", "createJsInvokerSignature", "PureVirtualError", "registerInheritedInstance", "unregisterInheritedInstance", "getInheritedInstanceCount", "getLiveInheritedInstances", "setDelayFunction", "count_emval_handles" ];
8473
8512
 
8474
8513
  missingLibrarySymbols.forEach(missingLibrarySymbol);
8475
8514
 
8476
- var unexportedSymbols = [ "run", "out", "err", "callMain", "abort", "wasmExports", "writeStackCookie", "checkStackCookie", "INT53_MAX", "INT53_MIN", "bigintToI53Checked", "HEAP8", "HEAP16", "HEAPU16", "HEAP32", "HEAPU32", "HEAPF32", "HEAPF64", "HEAP64", "HEAPU64", "stackSave", "stackRestore", "stackAlloc", "createNamedFunction", "ptrToString", "zeroMemory", "exitJS", "getHeapMax", "growMemory", "ENV", "ERRNO_CODES", "strError", "inetPton4", "inetNtop4", "inetPton6", "inetNtop6", "readSockaddr", "writeSockaddr", "DNS", "Protocols", "Sockets", "timers", "warnOnce", "readEmAsmArgsArray", "getExecutableName", "handleException", "keepRuntimeAlive", "runtimeKeepalivePush", "callUserCallback", "maybeExit", "asyncLoad", "alignMemory", "mmapAlloc", "wasmTable", "wasmMemory", "getUniqueRunDependency", "noExitRuntime", "addOnPreRun", "addOnPostRun", "freeTableIndexes", "functionsInTableMap", "setValue", "getValue", "PATH", "PATH_FS", "UTF8Decoder", "UTF8ArrayToString", "UTF8ToString", "stringToUTF8Array", "stringToUTF8", "lengthBytesUTF8", "intArrayFromString", "AsciiToString", "UTF16Decoder", "UTF16ToString", "stringToUTF16", "lengthBytesUTF16", "UTF32ToString", "stringToUTF32", "lengthBytesUTF32", "JSEvents", "specialHTMLTargets", "findCanvasEventTarget", "currentFullscreenStrategy", "restoreOldWindowedStyle", "UNWIND_CACHE", "ExitStatus", "getEnvStrings", "checkWasiClock", "doReadv", "doWritev", "initRandomFill", "randomFill", "emSetImmediate", "emClearImmediate_deps", "emClearImmediate", "promiseMap", "uncaughtExceptionCount", "exceptionCaught", "ExceptionInfo", "Browser", "requestFullscreen", "requestFullScreen", "setCanvasSize", "getUserMedia", "createContext", "getPreloadedImageData__data", "wget", "MONTH_DAYS_REGULAR", "MONTH_DAYS_LEAP", "MONTH_DAYS_REGULAR_CUMULATIVE", "MONTH_DAYS_LEAP_CUMULATIVE", "SYSCALLS", "getSocketFromFD", "getSocketAddress", "preloadPlugins", "FS_createPreloadedFile", "FS_modeStringToFlags", "FS_getMode", "FS_fileDataToTypedArray", "FS_stdin_getChar_buffer", "FS_stdin_getChar", "FS_readFile", "FS_root", "FS_mounts", "FS_devices", "FS_streams", "FS_nextInode", "FS_nameTable", "FS_currentPath", "FS_initialized", "FS_ignorePermissions", "FS_filesystems", "FS_syncFSRequests", "FS_lookupPath", "FS_getPath", "FS_hashName", "FS_hashAddNode", "FS_hashRemoveNode", "FS_lookupNode", "FS_createNode", "FS_destroyNode", "FS_isRoot", "FS_isMountpoint", "FS_isFile", "FS_isDir", "FS_isLink", "FS_isChrdev", "FS_isBlkdev", "FS_isFIFO", "FS_isSocket", "FS_flagsToPermissionString", "FS_nodePermissions", "FS_mayLookup", "FS_mayCreate", "FS_mayDelete", "FS_mayOpen", "FS_checkOpExists", "FS_nextfd", "FS_getStreamChecked", "FS_getStream", "FS_createStream", "FS_closeStream", "FS_dupStream", "FS_doSetAttr", "FS_chrdev_stream_ops", "FS_major", "FS_minor", "FS_makedev", "FS_registerDevice", "FS_getDevice", "FS_getMounts", "FS_syncfs", "FS_mount", "FS_unmount", "FS_lookup", "FS_mknod", "FS_statfs", "FS_statfsStream", "FS_statfsNode", "FS_create", "FS_mkdir", "FS_mkdev", "FS_symlink", "FS_rename", "FS_rmdir", "FS_readdir", "FS_readlink", "FS_stat", "FS_fstat", "FS_lstat", "FS_doChmod", "FS_chmod", "FS_lchmod", "FS_fchmod", "FS_doChown", "FS_chown", "FS_lchown", "FS_fchown", "FS_doTruncate", "FS_truncate", "FS_ftruncate", "FS_utime", "FS_open", "FS_close", "FS_isClosed", "FS_llseek", "FS_read", "FS_write", "FS_mmap", "FS_msync", "FS_ioctl", "FS_writeFile", "FS_cwd", "FS_chdir", "FS_createDefaultDirectories", "FS_createDefaultDevices", "FS_createSpecialDirectories", "FS_createStandardStreams", "FS_staticInit", "FS_init", "FS_quit", "FS_findObject", "FS_analyzePath", "FS_createFile", "FS_forceLoadFile", "MEMFS", "TTY", "PIPEFS", "SOCKFS", "tempFixedLengthArray", "miniTempWebGLFloatBuffers", "miniTempWebGLIntBuffers", "GL", "AL", "GLUT", "EGL", "GLEW", "IDBStore", "SDL", "SDL_gfx", "waitAsyncPolyfilled", "print", "printErr", "jstoi_s", "PThread", "terminateWorker", "cleanupThread", "registerTLSInit", "spawnThread", "exitOnMainThread", "proxyToMainThread", "proxiedJSCallArgs", "invokeEntryPoint", "checkMailbox", "InternalError", "BindingError", "throwInternalError", "throwBindingError", "registeredTypes", "awaitingDependencies", "typeDependencies", "tupleRegistrations", "structRegistrations", "sharedRegisterType", "whenDependentTypesAreResolved", "getTypeName", "getFunctionName", "heap32VectorToArray", "requireRegisteredType", "usesDestructorStack", "checkArgCount", "getEnumValueType", "getRequiredArgCount", "createJsInvoker", "UnboundTypeError", "EmValType", "EmValOptionalType", "throwUnboundTypeError", "ensureOverloadTable", "exposePublicSymbol", "replacePublicSymbol", "embindRepr", "registeredInstances", "getBasestPointer", "getInheritedInstance", "registeredPointers", "registerType", "integerReadValueFromPointer", "enumReadValueFromPointer", "floatReadValueFromPointer", "assertIntegerRange", "readPointer", "installIndexedIterator", "runDestructors", "craftInvokerFunction", "embind__requireFunction", "genericPointerToWireType", "constNoSmartPtrRawPointerToWireType", "nonConstNoSmartPtrRawPointerToWireType", "init_RegisteredPointer", "RegisteredPointer", "RegisteredPointer_fromWireType", "runDestructor", "releaseClassHandle", "finalizationRegistry", "detachFinalizer_deps", "detachFinalizer", "attachFinalizer", "makeClassHandle", "init_ClassHandle", "ClassHandle", "throwInstanceAlreadyDeleted", "deletionQueue", "flushPendingDeletes", "delayFunction", "RegisteredClass", "shallowCopyInternalPointer", "downcastPointer", "upcastPointer", "validateThis", "char_0", "char_9", "makeLegalFunctionName", "emval_freelist", "emval_handles", "emval_symbols", "getStringOrSymbol", "Emval", "emval_returnValue", "emval_lookupTypes", "emval_methodCallers", "emval_addMethodCaller", "NODEFS" ];
8515
+ var unexportedSymbols = [ "run", "out", "err", "callMain", "abort", "wasmExports", "writeStackCookie", "checkStackCookie", "INT53_MAX", "INT53_MIN", "bigintToI53Checked", "HEAP8", "HEAP16", "HEAPU16", "HEAP32", "HEAPU32", "HEAPF32", "HEAPF64", "HEAP64", "HEAPU64", "stackSave", "stackRestore", "stackAlloc", "createNamedFunction", "ptrToString", "zeroMemory", "exitJS", "getHeapMax", "growMemory", "ENV", "ERRNO_CODES", "strError", "inetPton4", "inetNtop4", "inetPton6", "inetNtop6", "readSockaddr", "writeSockaddr", "DNS", "Protocols", "Sockets", "timers", "warnOnce", "readEmAsmArgsArray", "getExecutableName", "handleException", "keepRuntimeAlive", "runtimeKeepalivePush", "callUserCallback", "maybeExit", "asyncLoad", "alignMemory", "mmapAlloc", "wasmTable", "wasmMemory", "getUniqueRunDependency", "noExitRuntime", "addOnPreRun", "addOnPostRun", "freeTableIndexes", "functionsInTableMap", "setValue", "getValue", "PATH", "PATH_FS", "UTF8Decoder", "UTF8ArrayToString", "UTF8ToString", "stringToUTF8Array", "stringToUTF8", "lengthBytesUTF8", "intArrayFromString", "AsciiToString", "UTF16Decoder", "UTF16ToString", "stringToUTF16", "lengthBytesUTF16", "UTF32ToString", "stringToUTF32", "lengthBytesUTF32", "JSEvents", "specialHTMLTargets", "findCanvasEventTarget", "currentFullscreenStrategy", "restoreOldWindowedStyle", "UNWIND_CACHE", "ExitStatus", "getEnvStrings", "checkWasiClock", "doReadv", "doWritev", "initRandomFill", "randomFill", "emSetImmediate", "emClearImmediate_deps", "emClearImmediate", "promiseMap", "uncaughtExceptionCount", "exceptionCaught", "ExceptionInfo", "findMatchingCatch", "Browser", "requestFullscreen", "requestFullScreen", "setCanvasSize", "getUserMedia", "createContext", "getPreloadedImageData__data", "wget", "MONTH_DAYS_REGULAR", "MONTH_DAYS_LEAP", "MONTH_DAYS_REGULAR_CUMULATIVE", "MONTH_DAYS_LEAP_CUMULATIVE", "SYSCALLS", "getSocketFromFD", "getSocketAddress", "preloadPlugins", "FS_createPreloadedFile", "FS_modeStringToFlags", "FS_getMode", "FS_fileDataToTypedArray", "FS_stdin_getChar_buffer", "FS_stdin_getChar", "FS_readFile", "FS_root", "FS_mounts", "FS_devices", "FS_streams", "FS_nextInode", "FS_nameTable", "FS_currentPath", "FS_initialized", "FS_ignorePermissions", "FS_filesystems", "FS_syncFSRequests", "FS_lookupPath", "FS_getPath", "FS_hashName", "FS_hashAddNode", "FS_hashRemoveNode", "FS_lookupNode", "FS_createNode", "FS_destroyNode", "FS_isRoot", "FS_isMountpoint", "FS_isFile", "FS_isDir", "FS_isLink", "FS_isChrdev", "FS_isBlkdev", "FS_isFIFO", "FS_isSocket", "FS_flagsToPermissionString", "FS_nodePermissions", "FS_mayLookup", "FS_mayCreate", "FS_mayDelete", "FS_mayOpen", "FS_checkOpExists", "FS_nextfd", "FS_getStreamChecked", "FS_getStream", "FS_createStream", "FS_closeStream", "FS_dupStream", "FS_doSetAttr", "FS_chrdev_stream_ops", "FS_major", "FS_minor", "FS_makedev", "FS_registerDevice", "FS_getDevice", "FS_getMounts", "FS_syncfs", "FS_mount", "FS_unmount", "FS_lookup", "FS_mknod", "FS_statfs", "FS_statfsStream", "FS_statfsNode", "FS_create", "FS_mkdir", "FS_mkdev", "FS_symlink", "FS_rename", "FS_rmdir", "FS_readdir", "FS_readlink", "FS_stat", "FS_fstat", "FS_lstat", "FS_doChmod", "FS_chmod", "FS_lchmod", "FS_fchmod", "FS_doChown", "FS_chown", "FS_lchown", "FS_fchown", "FS_doTruncate", "FS_truncate", "FS_ftruncate", "FS_utime", "FS_open", "FS_close", "FS_isClosed", "FS_llseek", "FS_read", "FS_write", "FS_mmap", "FS_msync", "FS_ioctl", "FS_writeFile", "FS_cwd", "FS_chdir", "FS_createDefaultDirectories", "FS_createDefaultDevices", "FS_createSpecialDirectories", "FS_createStandardStreams", "FS_staticInit", "FS_init", "FS_quit", "FS_findObject", "FS_analyzePath", "FS_createFile", "FS_forceLoadFile", "MEMFS", "TTY", "PIPEFS", "SOCKFS", "tempFixedLengthArray", "miniTempWebGLFloatBuffers", "miniTempWebGLIntBuffers", "GL", "AL", "GLUT", "EGL", "GLEW", "IDBStore", "SDL", "SDL_gfx", "waitAsyncPolyfilled", "print", "printErr", "jstoi_s", "PThread", "terminateWorker", "cleanupThread", "registerTLSInit", "spawnThread", "exitOnMainThread", "proxyToMainThread", "proxiedJSCallArgs", "invokeEntryPoint", "checkMailbox", "InternalError", "BindingError", "throwInternalError", "throwBindingError", "registeredTypes", "awaitingDependencies", "typeDependencies", "tupleRegistrations", "structRegistrations", "sharedRegisterType", "whenDependentTypesAreResolved", "getTypeName", "getFunctionName", "heap32VectorToArray", "requireRegisteredType", "usesDestructorStack", "checkArgCount", "getEnumValueType", "getRequiredArgCount", "createJsInvoker", "UnboundTypeError", "EmValType", "EmValOptionalType", "throwUnboundTypeError", "ensureOverloadTable", "exposePublicSymbol", "replacePublicSymbol", "embindRepr", "registeredInstances", "getBasestPointer", "getInheritedInstance", "registeredPointers", "registerType", "integerReadValueFromPointer", "enumReadValueFromPointer", "floatReadValueFromPointer", "assertIntegerRange", "readPointer", "installIndexedIterator", "runDestructors", "craftInvokerFunction", "embind__requireFunction", "genericPointerToWireType", "constNoSmartPtrRawPointerToWireType", "nonConstNoSmartPtrRawPointerToWireType", "init_RegisteredPointer", "RegisteredPointer", "RegisteredPointer_fromWireType", "runDestructor", "releaseClassHandle", "finalizationRegistry", "detachFinalizer_deps", "detachFinalizer", "attachFinalizer", "makeClassHandle", "init_ClassHandle", "ClassHandle", "throwInstanceAlreadyDeleted", "deletionQueue", "flushPendingDeletes", "delayFunction", "RegisteredClass", "shallowCopyInternalPointer", "downcastPointer", "upcastPointer", "validateThis", "char_0", "char_9", "makeLegalFunctionName", "emval_freelist", "emval_handles", "emval_symbols", "getStringOrSymbol", "Emval", "emval_returnValue", "emval_lookupTypes", "emval_methodCallers", "emval_addMethodCaller", "NODEFS" ];
8477
8516
 
8478
8517
  unexportedSymbols.forEach(unexportedRuntimeSymbol);
8479
8518
 
@@ -8570,6 +8609,8 @@ var __emscripten_thread_exit = makeInvalidEarlyAccess("__emscripten_thread_exit"
8570
8609
 
8571
8610
  var __emscripten_check_mailbox = makeInvalidEarlyAccess("__emscripten_check_mailbox");
8572
8611
 
8612
+ var _setThrew = makeInvalidEarlyAccess("_setThrew");
8613
+
8573
8614
  var _emscripten_stack_init = makeInvalidEarlyAccess("_emscripten_stack_init");
8574
8615
 
8575
8616
  var _emscripten_stack_set_limits = makeInvalidEarlyAccess("_emscripten_stack_set_limits");
@@ -8582,6 +8623,10 @@ var __emscripten_stack_alloc = makeInvalidEarlyAccess("__emscripten_stack_alloc"
8582
8623
 
8583
8624
  var _emscripten_stack_get_current = makeInvalidEarlyAccess("_emscripten_stack_get_current");
8584
8625
 
8626
+ var ___cxa_decrement_exception_refcount = makeInvalidEarlyAccess("___cxa_decrement_exception_refcount");
8627
+
8628
+ var ___cxa_get_exception_ptr = makeInvalidEarlyAccess("___cxa_get_exception_ptr");
8629
+
8585
8630
  var __indirect_function_table = makeInvalidEarlyAccess("__indirect_function_table");
8586
8631
 
8587
8632
  var wasmTable = makeInvalidEarlyAccess("wasmTable");
@@ -8608,12 +8653,15 @@ function assignWasmExports(wasmExports) {
8608
8653
  assert(typeof wasmExports["_emscripten_thread_free_data"] != "undefined", "missing Wasm export: _emscripten_thread_free_data");
8609
8654
  assert(typeof wasmExports["_emscripten_thread_exit"] != "undefined", "missing Wasm export: _emscripten_thread_exit");
8610
8655
  assert(typeof wasmExports["_emscripten_check_mailbox"] != "undefined", "missing Wasm export: _emscripten_check_mailbox");
8656
+ assert(typeof wasmExports["setThrew"] != "undefined", "missing Wasm export: setThrew");
8611
8657
  assert(typeof wasmExports["emscripten_stack_init"] != "undefined", "missing Wasm export: emscripten_stack_init");
8612
8658
  assert(typeof wasmExports["emscripten_stack_set_limits"] != "undefined", "missing Wasm export: emscripten_stack_set_limits");
8613
8659
  assert(typeof wasmExports["emscripten_stack_get_free"] != "undefined", "missing Wasm export: emscripten_stack_get_free");
8614
8660
  assert(typeof wasmExports["_emscripten_stack_restore"] != "undefined", "missing Wasm export: _emscripten_stack_restore");
8615
8661
  assert(typeof wasmExports["_emscripten_stack_alloc"] != "undefined", "missing Wasm export: _emscripten_stack_alloc");
8616
8662
  assert(typeof wasmExports["emscripten_stack_get_current"] != "undefined", "missing Wasm export: emscripten_stack_get_current");
8663
+ assert(typeof wasmExports["__cxa_decrement_exception_refcount"] != "undefined", "missing Wasm export: __cxa_decrement_exception_refcount");
8664
+ assert(typeof wasmExports["__cxa_get_exception_ptr"] != "undefined", "missing Wasm export: __cxa_get_exception_ptr");
8617
8665
  assert(typeof wasmExports["__indirect_function_table"] != "undefined", "missing Wasm export: __indirect_function_table");
8618
8666
  ___getTypeName = createExportWrapper("__getTypeName", 1);
8619
8667
  __embind_initialize_bindings = createExportWrapper("_embind_initialize_bindings", 0);
@@ -8636,12 +8684,15 @@ function assignWasmExports(wasmExports) {
8636
8684
  __emscripten_thread_free_data = createExportWrapper("_emscripten_thread_free_data", 1);
8637
8685
  __emscripten_thread_exit = createExportWrapper("_emscripten_thread_exit", 1);
8638
8686
  __emscripten_check_mailbox = createExportWrapper("_emscripten_check_mailbox", 0);
8687
+ _setThrew = createExportWrapper("setThrew", 2);
8639
8688
  _emscripten_stack_init = wasmExports["emscripten_stack_init"];
8640
8689
  _emscripten_stack_set_limits = wasmExports["emscripten_stack_set_limits"];
8641
8690
  _emscripten_stack_get_free = wasmExports["emscripten_stack_get_free"];
8642
8691
  __emscripten_stack_restore = wasmExports["_emscripten_stack_restore"];
8643
8692
  __emscripten_stack_alloc = wasmExports["_emscripten_stack_alloc"];
8644
8693
  _emscripten_stack_get_current = wasmExports["emscripten_stack_get_current"];
8694
+ ___cxa_decrement_exception_refcount = createExportWrapper("__cxa_decrement_exception_refcount", 1);
8695
+ ___cxa_get_exception_ptr = createExportWrapper("__cxa_get_exception_ptr", 1);
8645
8696
  __indirect_function_table = wasmTable = wasmExports["__indirect_function_table"];
8646
8697
  }
8647
8698
 
@@ -8650,8 +8701,14 @@ var wasmImports;
8650
8701
  function assignWasmImports() {
8651
8702
  wasmImports = {
8652
8703
  /** @export */ __assert_fail: ___assert_fail,
8704
+ /** @export */ __cxa_begin_catch: ___cxa_begin_catch,
8705
+ /** @export */ __cxa_end_catch: ___cxa_end_catch,
8706
+ /** @export */ __cxa_find_matching_catch_2: ___cxa_find_matching_catch_2,
8707
+ /** @export */ __cxa_find_matching_catch_3: ___cxa_find_matching_catch_3,
8708
+ /** @export */ __cxa_find_matching_catch_4: ___cxa_find_matching_catch_4,
8653
8709
  /** @export */ __cxa_throw: ___cxa_throw,
8654
8710
  /** @export */ __pthread_create_js: ___pthread_create_js,
8711
+ /** @export */ __resumeException: ___resumeException,
8655
8712
  /** @export */ __syscall_connect: ___syscall_connect,
8656
8713
  /** @export */ __syscall_dup: ___syscall_dup,
8657
8714
  /** @export */ __syscall_fcntl64: ___syscall_fcntl64,
@@ -8720,11 +8777,351 @@ function assignWasmImports() {
8720
8777
  /** @export */ fd_seek: _fd_seek,
8721
8778
  /** @export */ fd_write: _fd_write,
8722
8779
  /** @export */ getaddrinfo: _getaddrinfo,
8780
+ /** @export */ invoke_i,
8781
+ /** @export */ invoke_ii,
8782
+ /** @export */ invoke_iii,
8783
+ /** @export */ invoke_iiii,
8784
+ /** @export */ invoke_iiiii,
8785
+ /** @export */ invoke_iiij,
8786
+ /** @export */ invoke_iiijjj,
8787
+ /** @export */ invoke_iij,
8788
+ /** @export */ invoke_iiji,
8789
+ /** @export */ invoke_iijiiiiiii,
8790
+ /** @export */ invoke_ji,
8791
+ /** @export */ invoke_jiii,
8792
+ /** @export */ invoke_jiiiijijii,
8793
+ /** @export */ invoke_v,
8794
+ /** @export */ invoke_vi,
8795
+ /** @export */ invoke_vii,
8796
+ /** @export */ invoke_viii,
8797
+ /** @export */ invoke_viiii,
8798
+ /** @export */ invoke_viiiii,
8799
+ /** @export */ invoke_viiiiii,
8800
+ /** @export */ invoke_viiiiijijii,
8801
+ /** @export */ invoke_viiiijijii,
8802
+ /** @export */ invoke_viij,
8803
+ /** @export */ invoke_viijii,
8804
+ /** @export */ invoke_vij,
8805
+ /** @export */ invoke_viji,
8806
+ /** @export */ invoke_vijj,
8807
+ /** @export */ invoke_vijjii,
8808
+ /** @export */ llvm_eh_typeid_for: _llvm_eh_typeid_for,
8723
8809
  /** @export */ memory: wasmMemory,
8724
8810
  /** @export */ random_get: _random_get
8725
8811
  };
8726
8812
  }
8727
8813
 
8814
+ function invoke_ii(index, a1) {
8815
+ var sp = stackSave();
8816
+ try {
8817
+ return getWasmTableEntry(index)(a1);
8818
+ } catch (e) {
8819
+ stackRestore(sp);
8820
+ if (!(e instanceof EmscriptenEH)) throw e;
8821
+ _setThrew(1, 0);
8822
+ }
8823
+ }
8824
+
8825
+ function invoke_iii(index, a1, a2) {
8826
+ var sp = stackSave();
8827
+ try {
8828
+ return getWasmTableEntry(index)(a1, a2);
8829
+ } catch (e) {
8830
+ stackRestore(sp);
8831
+ if (!(e instanceof EmscriptenEH)) throw e;
8832
+ _setThrew(1, 0);
8833
+ }
8834
+ }
8835
+
8836
+ function invoke_viii(index, a1, a2, a3) {
8837
+ var sp = stackSave();
8838
+ try {
8839
+ getWasmTableEntry(index)(a1, a2, a3);
8840
+ } catch (e) {
8841
+ stackRestore(sp);
8842
+ if (!(e instanceof EmscriptenEH)) throw e;
8843
+ _setThrew(1, 0);
8844
+ }
8845
+ }
8846
+
8847
+ function invoke_iiji(index, a1, a2, a3) {
8848
+ var sp = stackSave();
8849
+ try {
8850
+ return getWasmTableEntry(index)(a1, a2, a3);
8851
+ } catch (e) {
8852
+ stackRestore(sp);
8853
+ if (!(e instanceof EmscriptenEH)) throw e;
8854
+ _setThrew(1, 0);
8855
+ }
8856
+ }
8857
+
8858
+ function invoke_vij(index, a1, a2) {
8859
+ var sp = stackSave();
8860
+ try {
8861
+ getWasmTableEntry(index)(a1, a2);
8862
+ } catch (e) {
8863
+ stackRestore(sp);
8864
+ if (!(e instanceof EmscriptenEH)) throw e;
8865
+ _setThrew(1, 0);
8866
+ }
8867
+ }
8868
+
8869
+ function invoke_iijiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
8870
+ var sp = stackSave();
8871
+ try {
8872
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9);
8873
+ } catch (e) {
8874
+ stackRestore(sp);
8875
+ if (!(e instanceof EmscriptenEH)) throw e;
8876
+ _setThrew(1, 0);
8877
+ }
8878
+ }
8879
+
8880
+ function invoke_iij(index, a1, a2) {
8881
+ var sp = stackSave();
8882
+ try {
8883
+ return getWasmTableEntry(index)(a1, a2);
8884
+ } catch (e) {
8885
+ stackRestore(sp);
8886
+ if (!(e instanceof EmscriptenEH)) throw e;
8887
+ _setThrew(1, 0);
8888
+ }
8889
+ }
8890
+
8891
+ function invoke_vijj(index, a1, a2, a3) {
8892
+ var sp = stackSave();
8893
+ try {
8894
+ getWasmTableEntry(index)(a1, a2, a3);
8895
+ } catch (e) {
8896
+ stackRestore(sp);
8897
+ if (!(e instanceof EmscriptenEH)) throw e;
8898
+ _setThrew(1, 0);
8899
+ }
8900
+ }
8901
+
8902
+ function invoke_vii(index, a1, a2) {
8903
+ var sp = stackSave();
8904
+ try {
8905
+ getWasmTableEntry(index)(a1, a2);
8906
+ } catch (e) {
8907
+ stackRestore(sp);
8908
+ if (!(e instanceof EmscriptenEH)) throw e;
8909
+ _setThrew(1, 0);
8910
+ }
8911
+ }
8912
+
8913
+ function invoke_iiij(index, a1, a2, a3) {
8914
+ var sp = stackSave();
8915
+ try {
8916
+ return getWasmTableEntry(index)(a1, a2, a3);
8917
+ } catch (e) {
8918
+ stackRestore(sp);
8919
+ if (!(e instanceof EmscriptenEH)) throw e;
8920
+ _setThrew(1, 0);
8921
+ }
8922
+ }
8923
+
8924
+ function invoke_vi(index, a1) {
8925
+ var sp = stackSave();
8926
+ try {
8927
+ getWasmTableEntry(index)(a1);
8928
+ } catch (e) {
8929
+ stackRestore(sp);
8930
+ if (!(e instanceof EmscriptenEH)) throw e;
8931
+ _setThrew(1, 0);
8932
+ }
8933
+ }
8934
+
8935
+ function invoke_viijii(index, a1, a2, a3, a4, a5) {
8936
+ var sp = stackSave();
8937
+ try {
8938
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5);
8939
+ } catch (e) {
8940
+ stackRestore(sp);
8941
+ if (!(e instanceof EmscriptenEH)) throw e;
8942
+ _setThrew(1, 0);
8943
+ }
8944
+ }
8945
+
8946
+ function invoke_vijjii(index, a1, a2, a3, a4, a5) {
8947
+ var sp = stackSave();
8948
+ try {
8949
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5);
8950
+ } catch (e) {
8951
+ stackRestore(sp);
8952
+ if (!(e instanceof EmscriptenEH)) throw e;
8953
+ _setThrew(1, 0);
8954
+ }
8955
+ }
8956
+
8957
+ function invoke_iiii(index, a1, a2, a3) {
8958
+ var sp = stackSave();
8959
+ try {
8960
+ return getWasmTableEntry(index)(a1, a2, a3);
8961
+ } catch (e) {
8962
+ stackRestore(sp);
8963
+ if (!(e instanceof EmscriptenEH)) throw e;
8964
+ _setThrew(1, 0);
8965
+ }
8966
+ }
8967
+
8968
+ function invoke_viji(index, a1, a2, a3) {
8969
+ var sp = stackSave();
8970
+ try {
8971
+ getWasmTableEntry(index)(a1, a2, a3);
8972
+ } catch (e) {
8973
+ stackRestore(sp);
8974
+ if (!(e instanceof EmscriptenEH)) throw e;
8975
+ _setThrew(1, 0);
8976
+ }
8977
+ }
8978
+
8979
+ function invoke_viiiii(index, a1, a2, a3, a4, a5) {
8980
+ var sp = stackSave();
8981
+ try {
8982
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5);
8983
+ } catch (e) {
8984
+ stackRestore(sp);
8985
+ if (!(e instanceof EmscriptenEH)) throw e;
8986
+ _setThrew(1, 0);
8987
+ }
8988
+ }
8989
+
8990
+ function invoke_viiii(index, a1, a2, a3, a4) {
8991
+ var sp = stackSave();
8992
+ try {
8993
+ getWasmTableEntry(index)(a1, a2, a3, a4);
8994
+ } catch (e) {
8995
+ stackRestore(sp);
8996
+ if (!(e instanceof EmscriptenEH)) throw e;
8997
+ _setThrew(1, 0);
8998
+ }
8999
+ }
9000
+
9001
+ function invoke_iiiii(index, a1, a2, a3, a4) {
9002
+ var sp = stackSave();
9003
+ try {
9004
+ return getWasmTableEntry(index)(a1, a2, a3, a4);
9005
+ } catch (e) {
9006
+ stackRestore(sp);
9007
+ if (!(e instanceof EmscriptenEH)) throw e;
9008
+ _setThrew(1, 0);
9009
+ }
9010
+ }
9011
+
9012
+ function invoke_i(index) {
9013
+ var sp = stackSave();
9014
+ try {
9015
+ return getWasmTableEntry(index)();
9016
+ } catch (e) {
9017
+ stackRestore(sp);
9018
+ if (!(e instanceof EmscriptenEH)) throw e;
9019
+ _setThrew(1, 0);
9020
+ }
9021
+ }
9022
+
9023
+ function invoke_v(index) {
9024
+ var sp = stackSave();
9025
+ try {
9026
+ getWasmTableEntry(index)();
9027
+ } catch (e) {
9028
+ stackRestore(sp);
9029
+ if (!(e instanceof EmscriptenEH)) throw e;
9030
+ _setThrew(1, 0);
9031
+ }
9032
+ }
9033
+
9034
+ function invoke_viiiijijii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
9035
+ var sp = stackSave();
9036
+ try {
9037
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9);
9038
+ } catch (e) {
9039
+ stackRestore(sp);
9040
+ if (!(e instanceof EmscriptenEH)) throw e;
9041
+ _setThrew(1, 0);
9042
+ }
9043
+ }
9044
+
9045
+ function invoke_ji(index, a1) {
9046
+ var sp = stackSave();
9047
+ try {
9048
+ return getWasmTableEntry(index)(a1);
9049
+ } catch (e) {
9050
+ stackRestore(sp);
9051
+ if (!(e instanceof EmscriptenEH)) throw e;
9052
+ _setThrew(1, 0);
9053
+ return 0n;
9054
+ }
9055
+ }
9056
+
9057
+ function invoke_viij(index, a1, a2, a3) {
9058
+ var sp = stackSave();
9059
+ try {
9060
+ getWasmTableEntry(index)(a1, a2, a3);
9061
+ } catch (e) {
9062
+ stackRestore(sp);
9063
+ if (!(e instanceof EmscriptenEH)) throw e;
9064
+ _setThrew(1, 0);
9065
+ }
9066
+ }
9067
+
9068
+ function invoke_jiii(index, a1, a2, a3) {
9069
+ var sp = stackSave();
9070
+ try {
9071
+ return getWasmTableEntry(index)(a1, a2, a3);
9072
+ } catch (e) {
9073
+ stackRestore(sp);
9074
+ if (!(e instanceof EmscriptenEH)) throw e;
9075
+ _setThrew(1, 0);
9076
+ return 0n;
9077
+ }
9078
+ }
9079
+
9080
+ function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) {
9081
+ var sp = stackSave();
9082
+ try {
9083
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6);
9084
+ } catch (e) {
9085
+ stackRestore(sp);
9086
+ if (!(e instanceof EmscriptenEH)) throw e;
9087
+ _setThrew(1, 0);
9088
+ }
9089
+ }
9090
+
9091
+ function invoke_iiijjj(index, a1, a2, a3, a4, a5) {
9092
+ var sp = stackSave();
9093
+ try {
9094
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5);
9095
+ } catch (e) {
9096
+ stackRestore(sp);
9097
+ if (!(e instanceof EmscriptenEH)) throw e;
9098
+ _setThrew(1, 0);
9099
+ }
9100
+ }
9101
+
9102
+ function invoke_jiiiijijii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
9103
+ var sp = stackSave();
9104
+ try {
9105
+ return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9);
9106
+ } catch (e) {
9107
+ stackRestore(sp);
9108
+ if (!(e instanceof EmscriptenEH)) throw e;
9109
+ _setThrew(1, 0);
9110
+ return 0n;
9111
+ }
9112
+ }
9113
+
9114
+ function invoke_viiiiijijii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
9115
+ var sp = stackSave();
9116
+ try {
9117
+ getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
9118
+ } catch (e) {
9119
+ stackRestore(sp);
9120
+ if (!(e instanceof EmscriptenEH)) throw e;
9121
+ _setThrew(1, 0);
9122
+ }
9123
+ }
9124
+
8728
9125
  // include: postamble.js
8729
9126
  // === Auto-generated postamble setup entry stuff ===
8730
9127
  var calledRun;
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "e57-js",
3
3
  "type": "module",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "e57",