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

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