summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1263355-16.js
blob: 9bf1a2412e450c2c4cab40b5f22650c45abd54ad (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| error: ReferenceError

let m = parseModule(`
var i = 0;
addThis();
function addThis() {
  return statusmessages[i] = Number;
}
`);
moduleLink(m);
moduleEvaluate(m);