summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug736807.js
blob: b279b02eb94927829916786dcf4a5ac8820bd54b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function f() {
    newGlobal().eval('\
        try {\
          if (typeof gczeal === "function") \
              gczeal(2,1); \
          throw new Error();\
        } catch (e) { \
          gc(); \
          assertEq("" + e, "Error"); \
        } \
    ');
}
f({}, [1,2,4,5,6,7,8,1], new RegExp(), function() {});