File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed
src/swift/Sources/JavaScriptKit Expand file tree Collapse file tree 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 11import _CJavaScriptKit
22
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-
223public enum JSValue : Equatable {
234 case boolean( Bool )
245 case string( String )
You can’t perform that action at this time.
0 commit comments