blob: caaee439d75d02c6d5e3ae0754ca6492f8f82210 [file] [log] [blame]
function test() {
class C extends Function {}
var c = new C("return 'foo';");
return c instanceof C && c instanceof Function && Object.getPrototypeOf(C) === Function;
}
if (!test())
throw new Error("Test failed");