Static Propertyjavascriptkit 0.23.0JavaScriptKit
constructor
The constructor function used to create new JavaScript Error
objects.
static var constructor: JSFunction? { get }
The constructor function used to create new JavaScript Error
objects.
static var constructor: JSFunction? { get }
s13JavaScriptKit7JSErrorC11constructorAA10JSFunctionCSgvpZ
What are these?15ON9
import JavaScriptKit
final class JSError
A wrapper around the JavaScript Error
class that exposes its properties in a type-safe way.
class JSFunction
JSFunction
represents a function in JavaScript and supports new object instantiation. This type can be callable as a function using callAsFunction
.
init(message: String)
Creates a new instance of the JavaScript Error
class with a given message.
init(unsafelyWrapping jsObject: JSObject)
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 name: String { get }
The name (usually corresponds to the name of the underlying class) of a given error.
var stack: String? { get }
The JavaScript call stack that led to the creation of this error object.