Skip to content

Commit bf88871

Browse files
sharkedjseebees
authored andcommitted
fix: Always explicitly catch exceptions. (#132)
Older js engines require this. See https://stackoverflow.com/a/21624550
1 parent 334c130 commit bf88871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/material-management/src/cryptographic_material.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ try {
3030
*/
3131
const { timingSafeEqual: nodeTimingSafeEqual } = require('crypto')
3232
timingSafeEqual = nodeTimingSafeEqual || portableTimingSafeEqual
33-
} catch {
33+
} catch (e) {
3434
timingSafeEqual = portableTimingSafeEqual
3535
}
3636
/* https://codahale.com/a-lesson-in-timing-attacks/ */

0 commit comments

Comments
 (0)