Debian Codegraph @

test/date/#/copy.js

raw
1 "use strict";
2
3 module.exports = function (t, a) {
4 var o = new Date(), o2;
5
6 o2 = t.call(o);
7 a.not(o, o2, "Different objects");
8 a.ok(o2 instanceof Date, "Instance of Date");
9 a(o.getTime(), o2.getTime(), "Same time");
10 };