summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Date/prototype-is-not-a-date.js
blob: 26f0c3e85964a7222eeac1d5dfbba949e0bca6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);