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

http://github.com/zpao/v8monkey · JavaScript · 15 lines · 13 code · 1 blank · 1 comment · 1 complexity · 9b561e84df12217d3bb8a6c24390b8f9 MD5 · raw file

  1. // This should not crash (or assert in debug builds).
  2. (function () {
  3. for (b in [0, 0]) {
  4. (eval("\
  5. [this\
  6. for (b in [\
  7. [undefined],\
  8. arguments,\
  9. [undefined]\
  10. ])\
  11. ]\
  12. "))
  13. }
  14. })()