blob: 54c4fd4bb96922560ce0705310451699b910206c [file] [log] [blame]
This test makes sure that instance of behaves correctly when the value, constructor, or its prototype are immediates.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS (1 instanceof 1) threw exception TypeError: Result of expression '1' [1] is not a valid argument for 'instanceof'..
PASS ({} instanceof 1) threw exception TypeError: Result of expression '1' [1] is not a valid argument for 'instanceof'..
PASS (obj instanceof 1) threw exception TypeError: Result of expression '1' [1] is not a valid argument for 'instanceof'..
PASS (1 instanceof {}) threw exception TypeError: Result of expression '{}' [[object Object]] is not a valid argument for 'instanceof'..
PASS ({} instanceof {}) threw exception TypeError: Result of expression '{}' [[object Object]] is not a valid argument for 'instanceof'..
PASS (obj instanceof {}) threw exception TypeError: Result of expression '{}' [[object Object]] is not a valid argument for 'instanceof'..
PASS (1 instanceof Constructor) is false
PASS ({} instanceof Constructor) is false
PASS (obj instanceof Constructor) is true
PASS (1 instanceof Constructor) is false
PASS ({} instanceof Constructor) threw exception TypeError: instanceof called on an object with an invalid prototype property..
PASS (obj instanceof Constructor) threw exception TypeError: instanceof called on an object with an invalid prototype property..
PASS (1 instanceof Constructor) is false
PASS ({} instanceof Constructor) is false
PASS (obj instanceof Constructor) is false
PASS (1 instanceof Constructor) is false
PASS ({} instanceof Constructor) threw exception TypeError: instanceof called on an object with an invalid prototype property..
PASS (obj instanceof Constructor) threw exception TypeError: instanceof called on an object with an invalid prototype property..
PASS successfullyParsed is true
TEST COMPLETE