summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug783421.js
blob: 920a78f97856d5c4040035c6fcd5bfbce2675596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Binary: cache/js-dbg-64-50e4ff05741e-linux
// Flags: -m -n -a
//
gc()
var p = n
function m() {
  return function(f, code, t) {
	try {
	  evalcx(code, newGlobal())
	} catch (e) {}
  }
}
function n() {
	f()
}
function h(code) {
	f = Function(code)
	p(f, code, true)
}
h("\
  p=m();\
  gcPreserveCode();\
  gcslice(8);\
")
h("\"\"")
h("")
h("gc()")
h("")
h("")
h("gczeal(4,2)")