/js/src/jit-test/tests/basic/testBoxDoubleWithDoubleSizedInt.js

http://github.com/zpao/v8monkey · JavaScript · 10 lines · 9 code · 1 blank · 0 comment · 1 complexity · 4bd33858e3462ce08ebc2586aba15063 MD5 · raw file

  1. function testBoxDoubleWithDoubleSizedInt()
  2. {
  3. var i = 0;
  4. var a = new Array(3);
  5. while (i < a.length)
  6. a[i++] = 0x5a827999;
  7. return a.join(",");
  8. }
  9. assertEq(testBoxDoubleWithDoubleSizedInt(), "1518500249,1518500249,1518500249");