in src/windowPostMessageProxy.ts [158:165]
removeHandler(handler: IMessageHandler) {
const handlerIndex = this.handlers.indexOf(handler);
if (handlerIndex === -1) {
throw new Error(`You attempted to remove a handler but no matching handler was found.`);
}
this.handlers.splice(handlerIndex, 1);
}