summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1141154.js
blob: 3640c4c17077a5f50e885d1138d8f84aa6245bd3 (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();
    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.toSource.call([])');
    } catch (exc) {}
  })();
} foo();