Polyfill WeakRef (#34025)

Fix #33407
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-03-26 23:56:25 +08:00
1 parent d28a7f9fea
commit d70be9d0fe
2 files changed
+23

No files matched your search

@@ -0,0 +1,7 @@
import {weakRefClass} from './polyfills.ts';
test('polyfillWeakRef', () => {
const WeakRef = weakRefClass();
const r = new WeakRef(123);
expect(r.deref()).toEqual(123);
});