Comparing version 0.9.1 to 0.9.2
@@ -5,3 +5,3 @@ { | ||
"keywords": ["date", "time", "time.h", "timezone", "setTimezone", "getTimezone"], | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -40,3 +40,13 @@ var should = require('should') | ||
describe('localtime()', function () { | ||
// GH-40 | ||
it('should not segfault on a NaN Date value', function () { | ||
var invalid = new Date(NaN) | ||
var local = time.localtime(invalid.getTime()) | ||
assert.deepEqual({ invalid: true }, local) | ||
}); | ||
}); | ||
describe('Date', function () { | ||
@@ -43,0 +53,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43951
779