1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-04 17:47:19 +00:00

Polyfill WeakRef (#34025)

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

View File

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