Make samples disposable

This commit is contained in:
Vanilagy
2025-09-24 21:41:52 +02:00
parent fa4e064345
commit a043f410fd
4 changed files with 25 additions and 8 deletions
+6
View File
@@ -780,3 +780,9 @@ export const uint8ArraysAreEqual = (a: Uint8Array, b: Uint8Array) => {
return true;
};
export const polyfillSymbolDispose = () => {
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html
// @ts-expect-error Readonly
Symbol.dispose ??= Symbol('Symbol.dispose');
};