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

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