feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39
@ -1855,6 +1855,8 @@ export function registerRobloxShim(lua, opts) {
|
||||
// Запускаем каждый в своей coroutine — wait() внутри безопасен.
|
||||
if (_pendingHandlerQueue.length > 0) {
|
||||
const queue = _pendingHandlerQueue.splice(0, _pendingHandlerQueue.length);
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(`[handler-drain] draining ${queue.length} handlers`);
|
||||
for (const h of queue) {
|
||||
try {
|
||||
const a = h.args || [];
|
||||
@ -1872,8 +1874,8 @@ export function registerRobloxShim(lua, opts) {
|
||||
result.catch(() => {});
|
||||
}
|
||||
} catch (e) {
|
||||
// Тихо — handler-error это норма (yield-across-C-boundary,
|
||||
// wasmoon promise-detection и т.п.)
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn('[handler-drain-catch]', e?.message || e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user