summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Object-script-AsmJSNative.js
blob: 3854f7f03de5e990bb28315128ee9dd78e7d5d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function test(stdlib, foreign) {
    "use asm"
    function f(y) {
        y = +y;
    }
    return f;
};
var g = newGlobal({newCompartment: true});
g.parent = this;
g.eval(`
  var dbg = new Debugger();
  var parentw = dbg.addDebuggee(parent);
  var testw = parentw.makeDebuggeeValue(parent.test);
  var scriptw = testw.script;
`);