Pretty much the same fix, I just used uint16_t instead.TextDecoder I can fix, I'll just have to pull the original implementation from version history (I'll say it again: Git is awesome). I implemented it in miniSphere *before* I implemented in Duktape, luckily.
mS 5 'chakra-js'----------------the pig:812manual aborttraditional for: 0.04msFor i++ in Check: 5.4msFor i++ in Step: 4.9msFor i++ in Body: 5.1msFor i += 1 in Step: 4.8msFor i += 1 in Body: 4.8msFor i += 2 in Step: 2.2msFor i++ in Body and Step: 3.6msWhile i++ in Step: 5.1msWhile i++ in Body: 4.5msmS 4.8.4--------@/scripts/testsuite.js:0manual aborttraditional for: 0msFor i++ in Check: 185.6msFor i++ in Step: 184.6msFor i++ in Body: 184.2msFor i += 1 in Step: 190.1msFor i += 1 in Body: 188.8msFor i += 2 in Step: 94.4msFor i++ in Body and Step: 131.9msWhile i++ in Step: 157.6msWhile i++ in Body: 158.1ms
minisphere: malloc.c:2883: mremap_chunk: Assertion `((size + offset) & (GLRO (dl_pagesize) - 1)) == 0' failed.Aborted