mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			674 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			674 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         println(structuredClone(new Boolean(true)));
 | |
|         println(structuredClone(new Boolean(false)));
 | |
|         println(structuredClone(new Number(123)));
 | |
|         println(structuredClone(new Number(123.456)));
 | |
|         println(structuredClone(new String("This is a String object")));
 | |
|         println(structuredClone(BigInt("0x1fffffffffffff")));
 | |
|         println(structuredClone(Date.UTC(2023, 7, 23)));
 | |
| 
 | |
|         try {
 | |
|             structuredClone(Symbol("foo"));
 | |
|             println("FAILED")
 | |
|         }
 | |
|         catch(e) {
 | |
|             println("ERROR: " + e.name + ": " + e.message)
 | |
|         }
 | |
|     });
 | |
| </script>
 | 
