mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-24 17:09:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("__proto__ property", () => {
 | |
|     expect(Object.getPrototypeOf({ __proto__: null })).toBeNull();
 | |
|     expect(Object.getPrototypeOf({ __proto__: Array.prototype })).toEqual(Array.prototype);
 | |
|     expect(Object.getPrototypeOf({ "__proto__": Array.prototype })).toEqual(Array.prototype); // prettier-ignore
 | |
|     expect(Object.getOwnPropertyNames({ __proto__: Array.prototype, test: 1 })).toEqual(["test"]);
 | |
| });
 |