Skip to content

Commit 908b507

Browse files
committed
BridgeJS: Regenerate snapshots and runtime bindings against current main
1 parent 92e34cd commit 908b507

File tree

6 files changed

+84
-33
lines changed

6 files changed

+84
-33
lines changed

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/CrossFileExtension.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ public func _bjs_Greeter_deinit(_ pointer: UnsafeMutableRawPointer) -> Void {
4141
#endif
4242
}
4343

44-
extension Greeter: ConvertibleToJSValue, _BridgedSwiftHeapObject {
44+
extension Greeter: ConvertibleToJSValue, _BridgedSwiftHeapObject, _BridgedSwiftProtocolExportable {
4545
var jsValue: JSValue {
4646
return .object(JSObject(id: UInt32(bitPattern: _bjs_Greeter_wrap(Unmanaged.passRetained(self).toOpaque()))))
4747
}
48+
consuming func bridgeJSLowerAsProtocolReturn() -> Int32 {
49+
_bjs_Greeter_wrap(Unmanaged.passRetained(self).toOpaque())
50+
}
4851
}
4952

5053
#if arch(wasm32)

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/StaticFunctions.Global.json

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,24 +166,33 @@
166166
"label" : "a",
167167
"name" : "a",
168168
"type" : {
169-
"int" : {
170-
169+
"integer" : {
170+
"_0" : {
171+
"isSigned" : true,
172+
"width" : "word"
173+
}
171174
}
172175
}
173176
},
174177
{
175178
"label" : "b",
176179
"name" : "b",
177180
"type" : {
178-
"int" : {
179-
181+
"integer" : {
182+
"_0" : {
183+
"isSigned" : true,
184+
"width" : "word"
185+
}
180186
}
181187
}
182188
}
183189
],
184190
"returnType" : {
185-
"int" : {
186-
191+
"integer" : {
192+
"_0" : {
193+
"isSigned" : true,
194+
"width" : "word"
195+
}
187196
}
188197
},
189198
"staticContext" : {
@@ -282,15 +291,21 @@
282291
"label" : "value",
283292
"name" : "value",
284293
"type" : {
285-
"int" : {
286-
294+
"integer" : {
295+
"_0" : {
296+
"isSigned" : true,
297+
"width" : "word"
298+
}
287299
}
288300
}
289301
}
290302
],
291303
"returnType" : {
292-
"int" : {
293-
304+
"integer" : {
305+
"_0" : {
306+
"isSigned" : true,
307+
"width" : "word"
308+
}
294309
}
295310
},
296311
"staticContext" : {

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/StaticFunctions.json

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,24 +166,33 @@
166166
"label" : "a",
167167
"name" : "a",
168168
"type" : {
169-
"int" : {
170-
169+
"integer" : {
170+
"_0" : {
171+
"isSigned" : true,
172+
"width" : "word"
173+
}
171174
}
172175
}
173176
},
174177
{
175178
"label" : "b",
176179
"name" : "b",
177180
"type" : {
178-
"int" : {
179-
181+
"integer" : {
182+
"_0" : {
183+
"isSigned" : true,
184+
"width" : "word"
185+
}
180186
}
181187
}
182188
}
183189
],
184190
"returnType" : {
185-
"int" : {
186-
191+
"integer" : {
192+
"_0" : {
193+
"isSigned" : true,
194+
"width" : "word"
195+
}
187196
}
188197
},
189198
"staticContext" : {
@@ -282,15 +291,21 @@
282291
"label" : "value",
283292
"name" : "value",
284293
"type" : {
285-
"int" : {
286-
294+
"integer" : {
295+
"_0" : {
296+
"isSigned" : true,
297+
"width" : "word"
298+
}
287299
}
288300
}
289301
}
290302
],
291303
"returnType" : {
292-
"int" : {
293-
304+
"integer" : {
305+
"_0" : {
306+
"isSigned" : true,
307+
"width" : "word"
308+
}
294309
}
295310
},
296311
"staticContext" : {

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/SwiftClass.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,11 @@
121121
"isStatic" : false,
122122
"name" : "nameCount",
123123
"type" : {
124-
"int" : {
125-
124+
"integer" : {
125+
"_0" : {
126+
"isSigned" : true,
127+
"width" : "word"
128+
}
126129
}
127130
}
128131
},

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/SwiftStruct.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,11 @@
312312
}
313313
},
314314
"type" : {
315-
"int" : {
316-
315+
"integer" : {
316+
"_0" : {
317+
"isSigned" : true,
318+
"width" : "word"
319+
}
317320
}
318321
}
319322
}

Tests/BridgeJSRuntimeTests/Generated/JavaScript/BridgeJS.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,11 @@
797797
"isStatic" : false,
798798
"name" : "nameCount",
799799
"type" : {
800-
"int" : {
801-
800+
"integer" : {
801+
"_0" : {
802+
"isSigned" : true,
803+
"width" : "word"
804+
}
802805
}
803806
}
804807
},
@@ -8523,15 +8526,21 @@
85238526
"label" : "_",
85248527
"name" : "value",
85258528
"type" : {
8526-
"int" : {
8527-
8529+
"integer" : {
8530+
"_0" : {
8531+
"isSigned" : true,
8532+
"width" : "word"
8533+
}
85288534
}
85298535
}
85308536
}
85318537
],
85328538
"returnType" : {
8533-
"int" : {
8534-
8539+
"integer" : {
8540+
"_0" : {
8541+
"isSigned" : true,
8542+
"width" : "word"
8543+
}
85358544
}
85368545
},
85378546
"staticContext" : {
@@ -15045,8 +15054,11 @@
1504515054
}
1504615055
},
1504715056
"type" : {
15048-
"int" : {
15049-
15057+
"integer" : {
15058+
"_0" : {
15059+
"isSigned" : true,
15060+
"width" : "word"
15061+
}
1505015062
}
1505115063
}
1505215064
}

0 commit comments

Comments
 (0)