(obj, klass, message)
| 157 | } |
| 158 | |
| 159 | instanceOf(obj, klass, message) { |
| 160 | if (obj instanceof klass) |
| 161 | this.ok(); |
| 162 | else |
| 163 | this.fail({type: "instanceOf", message: message, not: false}); // XXX what other data? |
| 164 | } |
| 165 | |
| 166 | notInstanceOf(obj, klass, message) { |
| 167 | if (obj instanceof klass) |
no test coverage detected