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

http://github.com/zpao/v8monkey · JavaScript · 6 lines · 6 code · 0 blank · 0 comment · 1 complexity · 94cc533ec2574f91e3d87822c41635a9 MD5 · raw file

  1. function testUndemotableBinaryOp() {
  2. var out = [];
  3. for (let j = 0; j < 5; ++j) { out.push(6 - ((void 0) ^ 0x80000005)); }
  4. return out.join(",");
  5. }
  6. assertEq(testUndemotableBinaryOp(), "2147483649,2147483649,2147483649,2147483649,2147483649");