Instance Propertyjavascriptkit 0.24.0JavaScriptKit
name
The name (usually corresponds to the name of the underlying class) of a given error.
var name: String { get }
The name (usually corresponds to the name of the underlying class) of a given error.
var name: String { get }
import JavaScriptKit
Swift framework to interact with JavaScript through WebAssembly.
final class JSError
A wrapper around the JavaScript Error
class that exposes its properties in a type-safe way.
@frozen struct String
A Unicode string value that is a collection of characters.
init(message: String)
Creates a new instance of the JavaScript Error
class with a given message.
init(unsafelyWrapping jsObject: JSObject)
static var constructor: JSFunction? { get }
The constructor function used to create new JavaScript Error
objects.
var description: String { get }
The textual representation of this error.
let jsObject: JSObject
The underlying JavaScript Error
object.
var jsValue: JSValue { get }
Creates a new JSValue
from this JSError
instance.
var message: String { get }
The error message of the underlying Error
object.
var stack: String? { get }
The JavaScript call stack that led to the creation of this error object.