summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/errors/bug1810711.js
blob: ef04251a0565f630b638f54a185ddb788a4475c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
var g = newGlobal({newCompartment: true});

try {
  undef()
} catch (err) {
  const handler = { "getPrototypeOf": (x) => () => x };
  const proxy = new g.Proxy(err, handler);
  try {
    proxy.stack
  } catch {}
}