/js/src/jit-test/tests/jaeger/modConstZeroRhs.js

http://github.com/zpao/v8monkey · JavaScript · 8 lines · 6 code · 2 blank · 0 comment · 0 complexity · ef1c28c5f4a308962087595508897ddc MD5 · raw file

  1. function f() {
  2. var x = 5;
  3. var y = 0;
  4. return x % y;
  5. }
  6. assertEq(f(), NaN);