From e62ffd4a90e13753aa439e2b4c2142c1c3055d9e Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Fri, 11 Oct 2024 10:52:10 -0400 Subject: [PATCH] Fix calls to createOutgoingResponseWithException --- js/src/Ice/ConnectionI.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/src/Ice/ConnectionI.js b/js/src/Ice/ConnectionI.js index e15b50a5312..67cfdb7d9e6 100644 --- a/js/src/Ice/ConnectionI.js +++ b/js/src/Ice/ConnectionI.js @@ -1427,10 +1427,7 @@ export class ConnectionI { } else { // Received request on a connection without an object adapter. this.sendResponse( - request.current.createOutgoingResponseWithException( - new ObjectNotExistException(), - this._communicator, - ), + request.current.createOutgoingResponseWithException(new ObjectNotExistException()), !this._endpoint.datagram() && requestId != 0, ); } @@ -1460,9 +1457,7 @@ export class ConnectionI { try { response = await dispatcher.dispatch(request); } catch (ex) { - const communicator = request.current.adapter.getCommunicator(); - Debug.assert(communicator !== null); - response = request.current.createOutgoingResponseWithException(ex, communicator); + response = request.current.createOutgoingResponseWithException(ex); } connection.sendResponse(response, !connection._endpoint.datagram() && requestId != 0); } catch (ex) {