diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/tests/non262/Date/prototype-is-not-a-date.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/tests/non262/Date/prototype-is-not-a-date.js b/js/src/tests/non262/Date/prototype-is-not-a-date.js new file mode 100644 index 0000000000..26f0c3e859 --- /dev/null +++ b/js/src/tests/non262/Date/prototype-is-not-a-date.js @@ -0,0 +1,15 @@ +/* + * Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ + */ + +var BUGNUMBER = 861219; +var summary = "Date.prototype isn't an instance of Date"; + +print(BUGNUMBER + ": " + summary); + +assertEq(Date.prototype instanceof Date, false); +assertEq(Date.prototype.__proto__, Object.prototype); + +if (typeof reportCompare === "function") + reportCompare(true, true); |