Closed qwenger closed 2 years ago
import quickjs c = quickjs.Context() fcts = [c.add_callable(f"a{i}", lambda x: x) for i in range(32769)] print(c.eval(f"a{len(fcts) - 2}(1)")) # passes print(c.eval(f"a{len(fcts) - 1}(2)")) # InternalError
JS_NewCFunctionMagic
int magic
int16_t
JS_NewCFunctionMagic
function accepting anint magic
, only the range ofint16_t
is valid, see upstream bug report: https://www.freelists.org/post/quickjs-devel/int-magic