mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:32:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			450 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			450 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| test("basic functionality", () => {
 | |
|     expect(isStrictMode()).toBeTrue();
 | |
| 
 | |
|     (function () {
 | |
|         expect(isStrictMode()).toBeTrue();
 | |
|     })();
 | |
| 
 | |
|     (() => {
 | |
|         expect(isStrictMode()).toBeTrue();
 | |
|     })();
 | |
| 
 | |
|     (() => {
 | |
|         "use strict";
 | |
|         expect(isStrictMode()).toBeTrue();
 | |
|     })();
 | |
| 
 | |
|     function a() {
 | |
|         expect(isStrictMode()).toBeTrue();
 | |
|     }
 | |
| 
 | |
|     a();
 | |
| 
 | |
|     eval("expect(isStrictMode()).toBeTrue()");
 | |
| });
 | 
