We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JSObject?
1 parent a8b249c commit e9855d1Copy full SHA for e9855d1
Plugins/BridgeJS/Sources/BridgeJSLink/JSGlueGen.swift
@@ -931,11 +931,6 @@ struct IntrinsicJSFragment: Sendable {
931
printer.write("\(idVar) = \(JSGlueVariableScope.reservedSwift).memory.retain(\(value));")
932
}
933
printer.write("}")
934
- cleanupCode.write("if (\(idVar) !== undefined) {")
935
- cleanupCode.indent {
936
- cleanupCode.write("\(JSGlueVariableScope.reservedSwift).memory.release(\(idVar));")
937
- }
938
- cleanupCode.write("}")
939
return ["+\(isSomeVar)", "\(isSomeVar) ? \(idVar) : 0"]
940
default:
941
return ["+\(isSomeVar)", "\(isSomeVar) ? \(value) : 0"]
0 commit comments