File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -671,17 +671,16 @@ extension IDLType: SwiftRepresentable {
671
671
// TODO: handle readonly closure properties
672
672
// (should they be a JSFunction? or a closure? or something else?))
673
673
if case let . single( name) = value {
674
- let readonlyComment : SwiftSource = readonly ? " /* XXX: should be readonly! */ " : " "
675
- // print(ModuleState.types)
674
+ precondition ( !readonly, " readonly closure properties are not supported " )
676
675
if let callback = ModuleState . types [ name] as? IDLCallback {
677
- return " \( closureWrapper ( callback, optional: false ) ) \( readonlyComment ) "
676
+ return " \( closureWrapper ( callback, optional: false ) ) "
678
677
}
679
678
if let ref = ModuleState . types [ name] as? IDLTypedef ,
680
679
case let . single( name) = ref. idlType. value,
681
680
let callback = ModuleState . types [ name] as? IDLCallback
682
681
{
683
682
assert ( ref. idlType. nullable)
684
- return " \( closureWrapper ( callback, optional: true ) ) \( readonlyComment ) "
683
+ return " \( closureWrapper ( callback, optional: true ) ) "
685
684
}
686
685
}
687
686
You can’t perform that action at this time.
0 commit comments