EmulatorJS Stack Failure Notice & New Fallback Feature Update

8BitGo 团队 · 2026-11-17 · 约 7 分钟阅读

Hello everyone,

Thankfully I ran a quick test before bed and found the root cause of today’s outage.

Around 1 AM on November 18, I updated the MAME core to add a fallback for low-memory browsers and environments without WebGL support. However, in commit 79be63d (reject truncated XHR core downloads), I made a mistake in the regex inside loader.js:
The pattern /^(?:text/html|application/(?:json|xml))\b/i contained an unescaped /. The parser terminated the regex at /^(?:text/, treating the remaining html as invalid flags, which threw SyntaxError: Invalid regular expression flags.

The loader uses import() to load emulator cores. This syntax error broke the entire import flow. By default, the loader does not surface the real underlying error and only shows the message minified files are missing.

This bug took down all EmulatorJS emulators, not just The King of Fighters '97. NES, SFC, GBA, arcade, PS1 and other cores failed to launch.

I sincerely apologize for this issue. I should have tested thoroughly locally before deployment. I will strengthen my testing workflow to prevent similar incidents in the future.

I also want to share a new addition to 8bitgo: MINIMAX GO has been integrated as a fallback tool. It can generate temporary hotfix patches when players run into broken games. Its quota is limited, so severe and complex bugs will still be handled with Codex and Claude.

Work has kept me very busy toward the end of the year, so I have had less time for 8bitgo maintenance. We’ve gained many new users with wildly different browser environments: some sandbox browsers block WASM, some devices have extremely tight memory limits (unable to load even 50MB cores), and there are many slow-loading and compatibility edge cases. I’ve enabled error logging, and I review and fix collected issues each night.

I’m planning an NS server migration next week. Right now traffic routes through Cloudflare to US nodes, which creates high latency. The migration will improve connection speeds.

For game content, next week I plan to upload IGS arcade titles and some Pokémon ROM hacks.
If you have games you’d like to see added, email me at: yeahcore@yeah.net

------------------

各位好,还好睡前做了一轮自测,发现了本次故障根源:

我在11月18日凌晨1点左右更新了MAME核心,初衷是为低内存、不支持WebGL的浏览器增加兜底兼容方案。但在提交 79be63d(reject truncated XHR core downloads) 时,loader.js 里的正则表达式写漏了转义:
正则 /^(?:text/html|application/(?:json|xml))\b/i 中,/ 没有转义,解析器读到 /^(?:text/ 就判定正则结束,后续 html 被识别为非法正则标记,抛出 SyntaxError: Invalid regular expression flags。

loader 通过 import() 加载模拟器引擎,正则语法错误直接导致 import 加载失败。同时 loader 默认不会输出原始报错,仅提示 minified files are missing。
本次故障影响全部 EmulatorJS 模拟器,并非仅限拳皇97:NES、SFC、GBA、街机、PS1 等所有模拟器均无法正常启动。

对此我深表歉意,本该在本地充分测试后再上线部署,后续我会严格把控上线流程,避免同类问题再次发生。

顺带同步一个新增能力:我为8bitgo接入了 MINIMAX GO,作为故障兜底方案。当玩家遇到游戏无法运行的问题时,它可以快速生成临时补丁应急修复。但受限于调用额度,重大、复杂bug依旧会交由 Codex、Claude 处理。

近期年底事务繁多,主业工作比较忙碌,对8bitgo的维护投入有所减少。同时站点新增了不少用户,大家的运行环境差异很大:部分沙箱浏览器会禁用WASM、部分设备内存配额极低(50MB的核心都加载失败)、还有大量加载缓慢以及各类零散兼容问题。目前我已经上线错误日志收集功能,会收集各类报错,每晚集中排查修复。

另外在规划下周的NS服务器迁移:当前经由Cloudflare中转到美国节点,访问延迟很高,迁移完成后会改善访问速度。

游戏资源方面,下周计划上传IGS基板游戏,以及部分宝可梦改版ROM。
如果你有想玩的游戏,可以发邮件至:yeahcore@yeah.net

更多文章