summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/caller-property.js
blob: 8b9a95a98975a07e7fff9a67200b011f477d7913 (plain)
1
2
3
4
5
6
7
const { g } = wasmEvalText(`(module (func $f) (export "g" (func $f)))`).exports;

function testCaller() {
  return g.caller;
}

assertErrorMessage(testCaller, TypeError, /caller/);