summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1263355-46.js
blob: e5c3ec1db153f6767a12d8d16849a5f4cb3423c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
setJitCompilerOption("ion.warmup.trigger", 4);
var lfLogBuffer = `
function logProxy(object = {}, handler = {}) {
    var log = [];
    var proxy = new WeakMap(object, new Proxy(handler, {
        get(proto) {
            log.push(propertyKey);
        }
    }));
}
var {proxy, log} = logProxy();
`;
loadFile(lfLogBuffer);
loadFile(lfLogBuffer);
loadFile(lfLogBuffer);
function loadFile(lfVarx) {
    try {
      function newFunc(x) {
        new Function(x)();
      };
      newFunc(lfVarx);
    } catch (lfVare) {}
}