(length, filenamesPtr)
| 84 | |
| 85 | var drop_files_or_dir = function (event) { |
| 86 | var callDropFunc = function (length, filenamesPtr) { |
| 87 | if (typeof (dynCall_viii) == 'function') |
| 88 | dynCall_viii(GLFW.active.dropFunc, GLFW.active.id, length, filenamesPtr); |
| 89 | else if (typeof (dynCall_vjij) == 'function') |
| 90 | dynCall_vjij(GLFW.active.dropFunc, BigInt(GLFW.active.id), length, BigInt(filenamesPtr)); |
| 91 | else |
| 92 | getWasmTableEntry(GLFW.active.dropFunc)(toPointer(GLFW.active.id), length, filenamesPtr); |
| 93 | }; |
| 94 | |
| 95 | if (!GLFW.active || !GLFW.active.dropFunc) return; |
| 96 | if (!event.dataTransfer || !event.dataTransfer.files || event.dataTransfer.files.length == 0) return callDropFunc(0, 0); |
no test coverage detected