summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/enable-profiling-in-import.js
blob: dd17b2089fac7eb175dd462ba2a6a30e674d0b7e (plain)
1
2
3
4
5
6
7
8
9
var module = new WebAssembly.Module(wasmTextToBinary(`
    (module
        (import "global" "func" (func))
        (func (export "f")
         call 0
        )
    )
`));
new WebAssembly.Instance(module, { global: { func: enableGeckoProfiling } }).exports.f();