summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug1335642.js
blob: 6e7779ae0448eed095674f531527fe3aff362b5e (plain)
1
2
3
4
5
6
var g = newGlobal();
var b = g.eval(`
var b = /foo2/;
Object.defineProperty(b, "source", { get: () => {}});
`);
new RegExp(b).source;