summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/execution-observability-03.js
blob: bc46d46d4c889382835bb71af38370e641f77615 (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();
    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();