• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines
6 
7 private var counter = 0
8 
9 internal actual val DEBUG: Boolean = false
10 
11 internal actual val Any.hexAddress: String
12     get() {
13         var result = this.asDynamic().__debug_counter
14         if (jsTypeOf(result) !== "number") {
15             result = ++counter
16             this.asDynamic().__debug_counter = result
17 
18         }
19         return (result as Int).toString()
20     }
21 
22 internal actual val Any.classSimpleName: String get() = this::class.simpleName ?: "Unknown"
23 
assertnull24 internal actual inline fun assert(value: () -> Boolean) {}
25