mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:02:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| test("basic functionality", () => {
 | |
|     [true, false, "foo", 123].forEach(primitive => {
 | |
|         expect(() => {
 | |
|             primitive.foo = "bar";
 | |
|         }).toThrowWithMessage(TypeError, "Cannot assign property foo to primitive value");
 | |
|     });
 | |
| });
 | 
