Open goldwaving opened 10 months ago
Hmm.. but sig.slice(1)
should always return a string even if sig is the empty string.
> ''.slice(1).replace(/j/g, 'ii')
''
Which leads me to believe that perhaps sig is perhaps some other type? Can add console.log(sig)
and console.log(typeof sig)
return before line 528 of jsifier.js
?
Are you passing your own JS library files? (i.e. are you using --js-library
?). Can you share your full link command?
Good catch. Turns out that one of my sigs was ['iiii'] instead of just 'iiii'. Perhaps there could be a check that sig is a string somewhere to avoid this kind of a compiler error.
Sounds like a good idea.
Emscripten v3.1.44 on Windows 11.
Maybe check length of sig is greater than 1 character?