File tree 2 files changed +19
-19
lines changed
src/swift/Sources/JavaScriptKit
2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change
1
+ import _CJavaScriptKit
2
+
3
+ public class JSObjectRef : Equatable {
4
+ let id : UInt32
5
+ init ( id: UInt32 ) {
6
+ self . id = id
7
+ }
8
+ public static func global( ) -> JSObjectRef {
9
+ . init( id: _JS_Predef_Value_Global)
10
+ }
11
+
12
+ deinit {
13
+
14
+ }
15
+
16
+ public static func == ( lhs: JSObjectRef , rhs: JSObjectRef ) -> Bool {
17
+ return lhs. id == rhs. id
18
+ }
19
+ }
Original file line number Diff line number Diff line change 1
1
import _CJavaScriptKit
2
2
3
- public class JSObjectRef : Equatable {
4
- let id : UInt32
5
- init ( id: UInt32 ) {
6
- self . id = id
7
- }
8
- public static func global( ) -> JSObjectRef {
9
- . init( id: _JS_Predef_Value_Global)
10
- }
11
-
12
- deinit {
13
-
14
- }
15
-
16
- public static func == ( lhs: JSObjectRef , rhs: JSObjectRef ) -> Bool {
17
- return lhs. id == rhs. id
18
- }
19
- }
20
-
21
-
22
3
public enum JSValue : Equatable {
23
4
case boolean( Bool )
24
5
case string( String )
You can’t perform that action at this time.
0 commit comments