Skip to content

Commit

Permalink
Private weakMap instances are vals
Browse files Browse the repository at this point in the history
  • Loading branch information
Schahen committed Dec 19, 2024
1 parent b06f2de commit 5620b58
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: Any): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: Any): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: JsAny): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: JsAny): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: Any): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: Any): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: JsAny): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: JsAny): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: Any): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: Any): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: JsAny): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: JsAny): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: Any): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: Any): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: JsAny): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: JsAny): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: Any): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: Any): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: JsAny): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: JsAny): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: Any): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: Any): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private external interface WeakMap {
fun get(key: JsAny): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: JsAny): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ private external interface WeakMap {
fun get(key: Any): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: Any): Int {
val value = nextHash++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ private external interface WeakMap {
fun get(key: JsAny): Int?
}

private var weakMap: WeakMap = js("new WeakMap()")
private val weakMap: WeakMap = js("new WeakMap()")
@NoLiveLiterals
private fun memoizeIdentityHashCode(instance: JsAny): Int {
val value = nextHash++
Expand Down

0 comments on commit 5620b58

Please sign in to comment.