blob: 6fcc13b5de3aad5e5bbb0abc292a7e72151031f7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
var myfunc = Function();
shouldBe("myfunc.prototype.constructor.__proto__ == Function.prototype","true");
shouldBe("myfunc.prototype.constructor.__proto__.__proto__ == Object.prototype","true");
shouldBe("myfunc.prototype.constructor == myfunc","true");
shouldBe("Function.prototype.constructor == Function","true");
shouldBe("myfunc.prototype.toString == Object.prototype.toString","true");
shouldBe("myfunc.toString == Function.prototype.toString","true");
//printValue("myfunc"); = "(Internal function)" ### should display code
//printValue("myfunc.prototype.constructor"); = "(Internal function)" ### should display code
|