summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1459754.js
blob: bfbe626acce4e10b710c413939480b805f0ada14 (plain)
1
2
3
4
5
6
7
8
9
function f(x) {
    this["__proto__"] = x;
    let tmp = this.toString;
    assertEq(x === null, tmp === void 0);
}

for (let e of [[], null, []]) {
    new f(e);
}