mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00: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);
 | 
						|
});
 |