There's a minor bug in the test which allows variables to leak into the global scope. Please see the attached patch.
Created attachment 19238 [details] 3d-cube.js patch
Comment on attachment 19238 [details] 3d-cube.js patch I assume this was meant for review; marking as such.
Comment on attachment 19238 [details] 3d-cube.js patch This change looks right to me. But Maciej should really be the one to review it.
Comment on attachment 19238 [details] 3d-cube.js patch This bug doesn't need to sit in the review queue. Maciej knows of the issue. Sitting in the review queue for the next 10 months isn't going to solve the issue. :) Maciej has noted reviewing this patch is blocked on other issues with sunspider distribution.
This bug doesn't seem to affect the correctness of the result. Saving for SunSpider 2.0.
Saam, can you take a look at this? Worth fixing for the next JS2 update?
(In reply to Maciej Stachowiak from comment #6) > Saam, can you take a look at this? Worth fixing for the next JS2 update? I've noticed this before. And it's very possible we've done things to make this faster. It's not quite obvious to me what the purpose of that loop is in general, especially if we switch to using `new`, none of those objects will be pointed to by anything. A sufficiently smart compiler could omit those allocations.