summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/null-metadata-filename.js
blob: 5d653062a2aac350d6e94fa4e50c1578aabd1bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if (typeof enableSPSProfiling === 'undefined' || !isAsmJSCompilationAvailable())
    quit();

evaluate(`
let f = evalReturningScope.bind(null, '');

(function(glob, stdlib) {
    "use asm";
    var f = stdlib.f;
    function _() { f(); }
    return _;
})(this, { f })();
`, { fileName: null });