feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39

Merged
min merged 215 commits from feat/lua-50-games-bundle into main 2026-06-09 21:59:25 +00:00
Showing only changes of commit d5b70ac4aa - Show all commits

View File

@ -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);
}
}
}