(func)
| 89 | assertEquals(undefined, Object.getOwnPropertyDescriptor(strict_func, "caller")); |
| 90 | |
| 91 | function CheckFunction(func) { |
| 92 | assertEquals("function", typeof func); |
| 93 | assertTrue(func instanceof Object); |
| 94 | assertTrue(func instanceof Function); |
| 95 | assertTrue(func instanceof A); |
| 96 | checkPrototypeChain(func, [A, Function, Object]); |
| 97 | assertEquals(42, func.a); |
| 98 | assertEquals(4.2, func.d); |
| 99 | assertEquals(153, func.o.foo); |
| 100 | assertTrue(undefined !== func.prototype); |
| 101 | func.prototype.bar = "func.bar"; |
| 102 | var obj = new func(); |
| 103 | assertTrue(obj instanceof Object); |
| 104 | assertTrue(obj instanceof func); |
| 105 | assertEquals("object", typeof obj); |
| 106 | assertEquals(113, obj.foo); |
| 107 | assertEquals("func.bar", obj.bar); |
| 108 | delete func.prototype.bar; |
| 109 | } |
| 110 | |
| 111 | var source = "this.foo = 113;"; |
| 112 |
no test coverage detected
searching dependent graphs…