bridge: Eliminate FakeChatSentRequest in favor of pairs

This commit is contained in:
Jordan Rose
2025-10-08 16:54:32 -07:00
parent 85cba92588
commit 388e294acf
10 changed files with 82 additions and 110 deletions

View File

@@ -848,11 +848,9 @@ export class InternalRequest implements Native.Wrapper<Native.HttpRequest> {
readonly _nativeHandle: Native.HttpRequest;
readonly requestId: bigint;
constructor(fakeRequest: Native.FakeChatSentRequest) {
const wrapper = newNativeHandle(fakeRequest);
this._nativeHandle =
Native.TESTING_FakeChatSentRequest_TakeHttpRequest(wrapper);
this.requestId = Native.TESTING_FakeChatSentRequest_RequestId(wrapper);
constructor([nativeHandle, requestId]: [Native.HttpRequest, bigint]) {
this._nativeHandle = nativeHandle;
this.requestId = requestId;
}
public get verb(): string {