commonMain.com.dokar.quickjs.binding.JsObjectHandle.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quickjs-kt Show documentation
Show all versions of quickjs-kt Show documentation
A QuickJS binding for idiomatic Kotlin, with Async/DSL/ES Modules support.
The newest version!
package com.dokar.quickjs.binding
import kotlin.jvm.JvmInline
/**
* The handle to a defined JavaScript object, can be used to define nested bindings.
*/
@JvmInline
value class JsObjectHandle(
val nativeHandle: Long,
) {
companion object {
val globalThis = JsObjectHandle(globalThisNativeHandle)
}
}
internal expect val globalThisNativeHandle: Long