File tree 1 file changed +2
-6
lines changed
Sources/JavaScriptKit/BasicObjects
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 2
2
class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) that
3
3
exposes its properties in a type-safe way.
4
4
*/
5
- public final class JSError : Error , JSBridgedClass {
5
+ public final class JSError : JSBridgedClass {
6
6
/// The constructor function used to create new JavaScript `Error` objects.
7
7
public static var constructor : JSFunction ? { _constructor. wrappedValue }
8
8
private static let _constructor = LazyThreadLocal ( initialize: { JSObject . global. Error. function } )
9
9
10
10
/// The underlying JavaScript `Error` object.
11
- ///
12
- /// NOTE: This property must be accessed from the thread that
13
- /// the thrown `Error` object was created on. Otherwise,
14
- /// it will result in a runtime assertion failure.
15
- public nonisolated ( unsafe) let jsObject: JSObject
11
+ public let jsObject : JSObject
16
12
17
13
/// Creates a new instance of the JavaScript `Error` class with a given message.
18
14
public init ( message: String ) {
You can’t perform that action at this time.
0 commit comments