summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/saved-stacks/proxy-handlers.js
blob: 7ad1f6dc68215cad2e8553dff70659bd3ce76f07 (plain)
1
2
3
4
5
6
7
8
9
10
// Test that we can save stacks with proxy handler frames.

const stack = (function iife() {
  return (new Proxy({}, {
    get: function get(t, n, r) { return saveStack(); }
  })).stack;
}());

assertEq(stack.functionDisplayName, "get");
assertEq(stack.parent.functionDisplayName, "iife");