Fix namespace instances and update tests

This commit is contained in:
Joe Farebrother
2025-11-26 10:51:16 +00:00
parent 83eadbad60
commit eb7fe71557
2 changed files with 25 additions and 10 deletions

View File

@@ -88,7 +88,11 @@ module SocketIO {
}
/** Gets a reference to an instance of a subclass of `socketio.Namespace` or `socketio.AsyncNamespace`. */
API::Node instance() { result = subclassRef().getAnInstance() }
API::Node instance() {
result = subclassRef().getAnInstance()
or
result = subclassRef().getAMember().getSelfParameter()
}
/** A socketio Namespace class. */
class NamespaceClass extends Class {