summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1410683.js
blob: 669662d4f9cc10eadcf9bd68fa9584869801ad91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class C {};
C.prototype.a = "a";
C.prototype.q = "q";
C.prototype.NaN = NaN;
class D extends C {
    foo(p) {
        return super[p];
    }
}
function f() {
    var d = new D();
    for (let p in C.prototype) {
        assertEq(p, String(d.foo(p)));
    }
}
f();
f();