OLD | NEW |
1 This test makes sure that instance of behaves correctly when the value, construc
tor, or its prototype are immediates. | 1 This test makes sure that instance of behaves correctly when the value, construc
tor, or its prototype are immediates. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS (1 instanceof 1) threw exception TypeError: Expecting a function in instanc
eof check, but got 1. | 6 PASS (1 instanceof 1) threw exception TypeError: Expecting a function in instanc
eof check, but got 1. |
7 PASS ({} instanceof 1) threw exception TypeError: Expecting a function in instan
ceof check, but got #<an Object>. | 7 PASS ({} instanceof 1) threw exception TypeError: Expecting a function in instan
ceof check, but got #<Object>. |
8 PASS (obj instanceof 1) threw exception TypeError: Expecting a function in insta
nceof check, but got #<a Constructor>. | 8 PASS (obj instanceof 1) threw exception TypeError: Expecting a function in insta
nceof check, but got #<Constructor>. |
9 PASS (1 instanceof {}) threw exception TypeError: Expecting a function in instan
ceof check, but got 1. | 9 PASS (1 instanceof {}) threw exception TypeError: Expecting a function in instan
ceof check, but got 1. |
10 PASS ({} instanceof {}) threw exception TypeError: Expecting a function in insta
nceof check, but got #<an Object>. | 10 PASS ({} instanceof {}) threw exception TypeError: Expecting a function in insta
nceof check, but got #<Object>. |
11 PASS (obj instanceof {}) threw exception TypeError: Expecting a function in inst
anceof check, but got #<a Constructor>. | 11 PASS (obj instanceof {}) threw exception TypeError: Expecting a function in inst
anceof check, but got #<Constructor>. |
12 PASS (1 instanceof Constructor) is false | 12 PASS (1 instanceof Constructor) is false |
13 PASS ({} instanceof Constructor) is false | 13 PASS ({} instanceof Constructor) is false |
14 PASS (obj instanceof Constructor) is true | 14 PASS (obj instanceof Constructor) is true |
15 PASS (1 instanceof Constructor) is false | 15 PASS (1 instanceof Constructor) is false |
16 PASS ({} instanceof Constructor) threw exception TypeError: Function has non-obj
ect prototype '1' in instanceof check. | 16 PASS ({} instanceof Constructor) threw exception TypeError: Function has non-obj
ect prototype '1' in instanceof check. |
17 PASS (obj instanceof Constructor) threw exception TypeError: Function has non-ob
ject prototype '1' in instanceof check. | 17 PASS (obj instanceof Constructor) threw exception TypeError: Function has non-ob
ject prototype '1' in instanceof check. |
18 PASS (1 instanceof Constructor) is false | 18 PASS (1 instanceof Constructor) is false |
19 PASS ({} instanceof Constructor) is false | 19 PASS ({} instanceof Constructor) is false |
20 PASS (obj instanceof Constructor) is false | 20 PASS (obj instanceof Constructor) is false |
21 PASS (1 instanceof Constructor) is false | 21 PASS (1 instanceof Constructor) is false |
22 PASS ({} instanceof Constructor) threw exception TypeError: Function has non-obj
ect prototype 'null' in instanceof check. | 22 PASS ({} instanceof Constructor) threw exception TypeError: Function has non-obj
ect prototype 'null' in instanceof check. |
23 PASS (obj instanceof Constructor) threw exception TypeError: Function has non-ob
ject prototype 'null' in instanceof check. | 23 PASS (obj instanceof Constructor) threw exception TypeError: Function has non-ob
ject prototype 'null' in instanceof check. |
24 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
25 | 25 |
26 TEST COMPLETE | 26 TEST COMPLETE |
27 | 27 |
OLD | NEW |