Only check needed > 0 if it was formerly > 0
sync headless code from bb
todo comment on TextDecoder
Merge pull request #1537 from aidanhs/4-byte-utf8-chars

Fix printing of 4 byte UTF-8 characters
remove some function indentation in asm.js block
warn on very large functions and mention OUTLINING_LIMIT
only outline in asm.js mode, where it is supported
emit switches in relooper
do not emit switches for very sparse/large switch values
warn on unswitchified switches
enable test_bigswitch everywhere; closes #781
tweak switch heuristics
tweak switch parameter some more
consider range and not just absolute value for using switches
tighten switch heuristics
flatten switches in outliner
disable test_bigswitch in most modes, needs bigger stack size
fix test_glut_touchevents
Adding missing output to verify it is correct.
Don't set context error when there is no context.