Skip to content

Commit 968af4a

Browse files
authored
Merge pull request #432 from japgolly/cryptoVal
Avoid forcing evaluation of crypto
2 parents 0a35f9c + a9ac287 commit 968af4a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api-reports/2_12.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ crypto/package[SO] type HashAlgorithmIdentifier = HashAlgorithm | String
204204
crypto/package[SO] type KeyAlgorithmIdentifier = KeyAlgorithm | String
205205
crypto/package[SO] implicit def arrayBuffer2BufferSource(b: ArrayBuffer): BufferSource
206206
crypto/package[SO] implicit def arrayBufferView2BufferSource(b: ArrayBufferView): BufferSource
207-
crypto/package[SO] val crypto = GlobalCrypto.crypto
207+
crypto/package[SO] def crypto = GlobalCrypto.crypto
208208
crypto/package.BufferSource[JT]
209209
css[SO] type FontFaceRule = raw.CSSFontFaceRule
210210
css[SO] type ImportRule = raw.CSSImportRule

api-reports/2_13.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ crypto/package[SO] type HashAlgorithmIdentifier = HashAlgorithm | String
204204
crypto/package[SO] type KeyAlgorithmIdentifier = KeyAlgorithm | String
205205
crypto/package[SO] implicit def arrayBuffer2BufferSource(b: ArrayBuffer): BufferSource
206206
crypto/package[SO] implicit def arrayBufferView2BufferSource(b: ArrayBufferView): BufferSource
207-
crypto/package[SO] val crypto = GlobalCrypto.crypto
207+
crypto/package[SO] def crypto = GlobalCrypto.crypto
208208
crypto/package.BufferSource[JT]
209209
css[SO] type FontFaceRule = raw.CSSFontFaceRule
210210
css[SO] type ImportRule = raw.CSSImportRule

src/main/scala/org/scalajs/dom/crypto/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import scala.scalajs.js.|
77
import scala.language.implicitConversions
88

99
package object crypto {
10-
val crypto = GlobalCrypto.crypto
10+
@inline def crypto = GlobalCrypto.crypto
1111

1212
type BigInteger = Uint8Array
1313

0 commit comments

Comments
 (0)