mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
338 B
19 lines
338 B
12 years ago
|
/*===
|
||
|
Invalid Date
|
||
|
NaN
|
||
|
[object Date]
|
||
|
===*/
|
||
|
|
||
|
/* E5.1 Section 15.9.5: Date.prototype is a 'Date' instance (internal class
|
||
|
* is "Date", and time value is NaN.
|
||
|
*/
|
||
|
|
||
|
try {
|
||
|
print(Date.prototype.toString());
|
||
|
print(Date.prototype.getTime());
|
||
|
print(Object.prototype.toString.call(Date.prototype));
|
||
|
} catch (e) {
|
||
|
print(e.name);
|
||
|
}
|
||
|
|