-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit 3e7bd2f
Change instanceof(Date) to util.types.isDate(Date) (#2862)
* change instanceof to isDate
* use both methods to check for valid Date
* add test for PR 2862
* use only isDate(date) in place of instanceof Date
* Extend compatibility of `isDate` use back to Node 8
* Clean up test
---------
Co-authored-by: Charmander <~@charmander.me>
Reviewed-by: Charmander <~@charmander.me>1 parent 9cf2184 commit 3e7bd2f
File tree
2 files changed
+27
-1
lines changed- packages/pg
- lib
- test/integration/gh-issues
2 files changed
+27
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | + | ||
6 | + | ||
7 | + | ||
5 | 8 |
| |
6 | 9 |
| |
7 | 10 |
| |
| |||
60 | 63 |
| |
61 | 64 |
| |
62 | 65 |
| |
63 | - | ||
66 | + | ||
64 | 67 |
| |
65 | 68 |
| |
66 | 69 |
| |
|
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + |
0 commit comments