Skip to content

Commit 9e1ef7f

Browse files
authored
Merge pull request GoogleChromeLabs#472 from felixfbecker/fix-disabled-test
Fix disabled test
2 parents cf4edf4 + dfe4578 commit 9e1ef7f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/type-checks.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,7 @@ async function closureSoICanUseAwait() {
324324
proxy2.registerProvider(
325325
// Async callback
326326
Comlink.proxy(async ({ textDocument }: Params) => {
327-
// Disabling this test here for now as there seems to be a bug with the
328-
// TypeScript compiler. It claims that this function does not return
329-
// a proxy-marked value.
330-
// @ts-expect-error
331-
return Comlink.proxy({
327+
const subscribable = Comlink.proxy({
332328
subscribe(
333329
subscriber: Comlink.Remote<Subscriber<string> & Comlink.ProxyMarked>
334330
): Unsubscribable & Comlink.ProxyMarked {
@@ -349,6 +345,7 @@ async function closureSoICanUseAwait() {
349345
return Comlink.proxy({ unsubscribe() {} });
350346
},
351347
});
348+
return subscribable;
352349
})
353350
);
354351
}

0 commit comments

Comments
 (0)