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

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