~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/debug/Debugger-debuggees-12.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Events in a non-debuggee are ignored, even if a debuggee is in the same compartment.
 
2
var g1 = newGlobal('new-compartment');
 
3
var g2 = g1.eval("newGlobal('same-compartment')");
 
4
var dbg = new Debugger(g1);
 
5
var hits = 0;
 
6
dbg.onDebuggerStatement = function () { hits++; };
 
7
g1.eval("debugger;");
 
8
assertEq(hits, 1);
 
9
g2.eval("debugger;");
 
10
assertEq(hits, 1);