Skip to content

Commit dff6231

Browse files
BridgeJS: Update snapshots for consistent constructor generation
1 parent 94ec790 commit dff6231

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSLinkTests/Namespaces.Export.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ export async function createInstantiator(options, swift) {
123123
}
124124
}
125125
class UUID extends SwiftHeapObject {
126+
static __construct(ptr) {
127+
return new UUID(ptr, instance.exports.bjs_UUID_deinit);
128+
}
129+
130+
constructor(pointer, deinit) {
131+
super(pointer, deinit);
132+
}
126133
uuidString() {
127134
instance.exports.bjs_UUID_uuidString(this.pointer);
128135
const ret = tmpRetString;

0 commit comments

Comments
 (0)