src/vs/base/common/worker/simpleWorker.ts/SimpleWorkerProtocol/_handleRequestMessage
class SimpleWorkerProtocol:	private _handleRequestMessage(requestMessage: RequestMessage): void {
		let req = requestMessage.req;
		let result = this._handler.handleMessage(requestMessage.method, requestMessage.args);
		result.then((r) => {
			this._send(new ReplyMessage(this._workerId, req, r, undefined));
		}, (e) => {
			if (e.detail instanceof Error) {
				// Loading errors have a detail property that points to the actual error
				e.detail = transformErrorForSerialization(e.detail);
			}
			this._send(new ReplyMessage(this._workerId, req, undefined, transformErrorForSerialization(e)));
		});
	}