When compiling this[0] C++ file with Emscripten, the compiled javascript file produces incorrect output when run with node (using node v0.12.0 on all platforms). This is not "serious" code, it is a toy minified raytracer, as found here[1]. I have tried to find any information on the Emscripten website regarding less-than-compatible behavior this source file might be doing which makes it run incorrectly, but I have had no luck.
In attempting to narrow the problem, I also constructed a small program which seems to break in a similar way, which can be found here[6].
I come here hoping that it is simply an oversight by me in how this code is written or how I'm compiling it.