summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-eval-28.js
blob: 2f7a15a0299f82eb0acf074b5b6defd34822adc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that strict Debugger.Frame.eval has a correct static scope.
"use strict";
var g = newGlobal({newCompartment: true});
var dbg = new Debugger(g);
var hits = 0;
dbg.onEnterFrame = function(f) {
  hits++;
  if (hits > 2)
    return;
  f.eval("42");
};
g.eval("42");