summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Object-script-AsmJSNative.js
blob: 650b71374aad7eeb4a8f00f83c5b7683333e0593 (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();
g.parent = this;
g.eval(`
  var dbg = new Debugger();
  var parentw = dbg.addDebuggee(parent);
  var testw = parentw.makeDebuggeeValue(parent.test);
  var scriptw = testw.script;
`);