mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:02:45 +00:00 
			
		
		
		
	 ec24d7555a
			
		
	
	
		ec24d7555a
		
	
	
	
	
		
			
			This object is available as `window.internals` (or just `internals`) and is only accessible while running in "test mode". This first version only has one API: gc(), which triggers a garbage collection immediately. In the future, we can add more APIs here to help us test parts of the engine that are hard or impossible to reach via public web APIs.
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			192 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			192 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         println(window.internals);
 | |
|         println(internals.gc);
 | |
|         internals.gc();
 | |
|         println("OK");
 | |
|     });
 | |
| </script>
 |