Skip to content

Commit a3b70b0

Browse files
committed
Update to node.js 16, 18, 20, drop 14 support
1 parent d8164f2 commit a3b70b0

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"extends": "eslint:recommended",
88
"parserOptions": {
9-
"ecmaVersion": 2020
9+
"ecmaVersion": "latest"
1010
},
1111
"globals": {
1212
"BigInt": true

JavaScript/4-unhandled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ setTimeout(() => {
1717
console.log('after all');
1818
}, 1000);
1919

20-
// UnhandledPromiseRejectionWarning: Error: a and b should be numbers
20+
// Throws: Error: a and b should be numbers

JavaScript/5-warning.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ sum(7, 'A')
1616
.then((data) => {
1717
console.log(data);
1818
});
19+
20+
// Throws: Error: a and b should be numbers

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2022 How.Programming.Works contributors
3+
Copyright (c) 2019-2023 How.Programming.Works contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)