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); }