diff --git a/languages/javascript/src/shared/Events/index.mjs b/languages/javascript/src/shared/Events/index.mjs index bc458934..530f3c3f 100644 --- a/languages/javascript/src/shared/Events/index.mjs +++ b/languages/javascript/src/shared/Events/index.mjs @@ -177,9 +177,6 @@ const doListen = function(module, event, callback, context, once, internal=false resolve(listenerId) } else { - // Remove the listener from external list on failure to subscribe - // TODO: Instead of removing, the failed subscription shouldn't be put into the external list - listeners.remove(listenerId) reject(error) } })