blob: a0be8521ac433ed6ca2843a0aa3b9bb86334e5a3 [file] [log] [blame]
function test() {
function correctProtoBound(superclass) {
class C extends superclass {
constructor() {
return Object.create(null);
}
}
var boundF = Function.prototype.bind.call(C, null);
return Object.getPrototypeOf(boundF) === Object.getPrototypeOf(C);
}
return correctProtoBound(function(){})
&& correctProtoBound(Array)
&& correctProtoBound(null);
}
if (!test())
throw new Error("Test failed");