mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
	
		
			256 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
	
		
			256 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								test("Issue #3548, exception in property getter with replacer function", () => {
							 | 
						||
| 
								 | 
							
								    const o = {
							 | 
						||
| 
								 | 
							
								        get foo() {
							 | 
						||
| 
								 | 
							
								            throw Error();
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								    };
							 | 
						||
| 
								 | 
							
								    expect(() => {
							 | 
						||
| 
								 | 
							
								        JSON.stringify(o, (_, value) => value);
							 | 
						||
| 
								 | 
							
								    }).toThrow(Error);
							 | 
						||
| 
								 | 
							
								});
							 |