mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:32:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			342 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();
 | |
| });
 | 
