mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
	
		
			302 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
	
		
			302 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|   | test("constructors are always strict mode", () => { | ||
|  |   class A { | ||
|  |     constructor() { | ||
|  |       expect(isStrictMode()).toBeTrue(); | ||
|  |     } | ||
|  |   } | ||
|  | 
 | ||
|  |   new A(); | ||
|  | }); | ||
|  | 
 | ||
|  | test("methods are always strict mode", () => { | ||
|  |   class A { | ||
|  |     method() { | ||
|  |       expect(isStrictMode()).toBeTrue(); | ||
|  |     } | ||
|  |   } | ||
|  | 
 | ||
|  |   new A().method(); | ||
|  | }); |