summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug785576.js
blob: ffd0563a1b26ff9771a0dc3904ccff273c9a15a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Binary: cache/js-dbg-64-29ca472bf2d2-linux
// Flags: -m -n -a
//
sandbox = newGlobal('')
evalcx("x=[]", sandbox)
evalcx("\
  x[0] = this;\
  Object.defineProperty(x, 0, {})\
", sandbox)
gc()
evalcx("x.shift()", sandbox)