Commit 89312b3
committed
Avoid forcing evaluation of crypto
Having `val crypto` in the package object means that when it's undefined
an exception is thrown immediately, which makes it impossible to use the
WebCrypto facade in such a case.
An example situation where this is preventative is using the WebCrypto
API from Node where its available as a library and not globally
available.1 parent 5a502ad commit 89312b3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments