mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-25 17:44:32 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			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);
 | |
| });
 |