int3/doppio — pull request #44 by jvilk (2012-10-05 20:23:11+00:00)
Title: Bug Fixes and StrictMath Implementation

I implemented the easiest StrictMath Native Functions, and wrote a testsuite for them.

I fixed ineg, which did not handle the special case of Integer.MIN_VALUE.

I fixed the disassembler for the testsuite.

I moved INT_MAX and INT_MIN into util so they can be referenced around the code.

I didn't bother trying to fix NaN edge cases (note that I commented out NaN as a test value in the StrictMath test suite).

The test suite will fail under Node because of some differences in Math's cosine/sine/etc on extreme values. Firefox's JavaScript engine seems to agree with Java, so I don't know what's up with V8.

If need be, I can manually avoid some of the extreme values when they cause problems. Let me know, and I can update the pull request.