summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/getpropsuper.js
blob: a2eec4646f4d18bab0eba1a6eed13118d770a3ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
setJitCompilerOption("ion.forceinlineCaches", 1);

function testGetPropSuper() {
  class C extends class { static p = 0 } {
    static m() {
      return super.p;
    }
  }

  for (var i = 0; i < 20; ++i) {
    var v = C.m();
    assertEq(v, 0);
  }
}
for (var i = 0; i < 2; ++i) testGetPropSuper();