mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-24 02:18:46 +03:00

Backport #34025 by wxiaoguang Fix #33407 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
8 lines
180 B
TypeScript
8 lines
180 B
TypeScript
import {weakRefClass} from './polyfills.ts';
|
|
|
|
test('polyfillWeakRef', () => {
|
|
const WeakRef = weakRefClass();
|
|
const r = new WeakRef(123);
|
|
expect(r.deref()).toEqual(123);
|
|
});
|