summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/execution-observability-03.js
blob: d330571ec9da42bd7dd99e26843283f0d924e032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Tests that bare callVMs (in the delprop below) are patched correctly.

var o = {};
var global = this;
var p = new Proxy(o, {
  "deleteProperty": function (target, key) {
    var g = newGlobal({newCompartment: true});
    g.parent = global;
    g.eval("var dbg = new Debugger(parent); dbg.onEnterFrame = function(frame) {};");
    return true;
  }
});
function test() {
  for (var i=0; i<100; i++) {}
  assertEq(delete p.foo, true);
}
test();