From a first (very) quick glance, it looks like a number of the fixes here could apply: https://github.com/bellard/quickjs/commit/3dc7ef1f7f500e39698bef9762b904b2690bb369
From a first (very) quick glance, it looks like a number of the fixes here could apply: bellard/quickjs@3dc7ef1