JsSymbol

@Serializable
value class JsSymbol : Symbol, Comparable<Symbol> , Serializable

JavaScript Symbol

Describes a symbol registered for injection into the JavaScript VM as an intrinsic value; JavaScript symbols consist of a name and an "internal" flag.

The name of a symbol becomes the value's name within an executing VM; the internal flag indicates whether the value should be made available to user code, or merely to internal scripts as a "primordial value."

&nsbp;

Primordial Values

Symbols marked as internal are not guaranteed to be provided to user code, and may carry a prefix which obfuscates their use as public APIs.

Such symbols will return true from isInternal.

Types

Link copied to clipboard
object JsSymbols

Well-known JavaScript symbols.

Properties

Link copied to clipboard
open override val internalSymbol: String

Describes the "internal symbol" name, made available via the primordial object.

Link copied to clipboard
open override val isInternal: Boolean

Indicate whether this symbol is "internal," in which case, it should not be provided to user code.

Link copied to clipboard
open override val symbol: String

Holds the name assigned to this symbol for guest code access.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Symbol): Int
Link copied to clipboard
open override fun toString(): String