saambarati1@gmail.com | f6d4324 | 2015-03-24 07:30:05 +0000 | [diff] [blame] | 1 | Test for error messages for instanceof |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
keith_miller@apple.com | cb11fe4 | 2015-12-18 00:37:35 +0000 | [diff] [blame] | 6 | PASS 'instanceof' instanceof 'instanceof' threw exception TypeError: Right hand side of instanceof is not an object. |
| 7 | PASS 20 instanceof 'hello' threw exception TypeError: Right hand side of instanceof is not an object. |
saambarati1@gmail.com | f6d4324 | 2015-03-24 07:30:05 +0000 | [diff] [blame] | 8 | PASS 20 instanceof {} threw exception TypeError: {} is not a function. (evaluating '20 instanceof {}'). |
keith_miller@apple.com | cb11fe4 | 2015-12-18 00:37:35 +0000 | [diff] [blame] | 9 | PASS 20 instanceof {}.foo threw exception TypeError: Right hand side of instanceof is not an object. |
| 10 | PASS 20 instanceof true threw exception TypeError: Right hand side of instanceof is not an object. |
saambarati1@gmail.com | f6d4324 | 2015-03-24 07:30:05 +0000 | [diff] [blame] | 11 | PASS successfullyParsed is true |
| 12 | |
| 13 | TEST COMPLETE |
| 14 | |