| OLD | NEW |
| (Empty) |
| 1 This test makes sure that instance of behaves correctly when the value, construc
tor, or its prototype are immediates. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS (1 instanceof 1) threw exception TypeError: '1' is not a valid argument for
'instanceof' (evaluating '1 instanceof 1'). | |
| 7 PASS ({} instanceof 1) threw exception TypeError: '1' is not a valid argument fo
r 'instanceof' (evaluating '{} instanceof 1'). | |
| 8 PASS (obj instanceof 1) threw exception TypeError: '1' is not a valid argument f
or 'instanceof' (evaluating 'obj instanceof 1'). | |
| 9 PASS (1 instanceof {}) threw exception TypeError: '[object Object]' is not a val
id argument for 'instanceof' (evaluating '1 instanceof {}'). | |
| 10 PASS ({} instanceof {}) threw exception TypeError: '[object Object]' is not a va
lid argument for 'instanceof' (evaluating '{} instanceof {}'). | |
| 11 PASS (obj instanceof {}) threw exception TypeError: '[object Object]' is not a v
alid argument for 'instanceof' (evaluating 'obj instanceof {}'). | |
| 12 PASS (1 instanceof Constructor) is false | |
| 13 PASS ({} instanceof Constructor) is false | |
| 14 PASS (obj instanceof Constructor) is true | |
| 15 PASS (1 instanceof Constructor) is false | |
| 16 PASS ({} instanceof Constructor) threw exception TypeError: instanceof called on
an object with an invalid prototype property.. | |
| 17 PASS (obj instanceof Constructor) threw exception TypeError: instanceof called o
n an object with an invalid prototype property.. | |
| 18 PASS (1 instanceof Constructor) is false | |
| 19 PASS ({} instanceof Constructor) is false | |
| 20 PASS (obj instanceof Constructor) is false | |
| 21 PASS (1 instanceof Constructor) is false | |
| 22 PASS ({} instanceof Constructor) threw exception TypeError: instanceof called on
an object with an invalid prototype property.. | |
| 23 PASS (obj instanceof Constructor) threw exception TypeError: instanceof called o
n an object with an invalid prototype property.. | |
| 24 PASS successfullyParsed is true | |
| 25 | |
| 26 TEST COMPLETE | |
| 27 | |
| OLD | NEW |