summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/class/super-base-is-null-get-prop.js
blob: eff5a290eedb391918eeba186a7161179d182676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class NullProto {
  static m() {
    try {
      return super.p;
    } catch {}
  }
}
Object.setPrototypeOf(NullProto, null);

for (var i = 0; i < 100; ++i) {
  NullProto.m();
}