summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1141154.js
blob: a56e6dc1323180033c4cbe418bd0f9e6f50f6c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function foo() {
  (function() {
    Object.preventExtensions(this);
    setJitCompilerOption("ion.warmup.trigger", 4);
    var g = newGlobal({newCompartment: true});
    g.debuggeeGlobal = this;
    g.eval("(" + function () {
        dbg = new Debugger(debuggeeGlobal);
        dbg.onExceptionUnwind = function (frame, exc) {
            var s = '!';
            for (var f = frame; f; f = f.older)
            debuggeeGlobal.log += s;
        };
    } + ")();");
    try {
      j('Number.prototype.toString.call([])');
    } catch (exc) {}
  })();
} foo();