mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-30 21:01:00 +00:00 
			
		
		
		
	
		
			
	
	
		
			31 lines
		
	
	
	
		
			426 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			31 lines
		
	
	
	
		
			426 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|   | "use strict"; | ||
|  | 
 | ||
|  | load("test-common.js"); | ||
|  | 
 | ||
|  | try { | ||
|  |     assert(isStrictMode()); | ||
|  | 
 | ||
|  |     (function() { | ||
|  |        assert(isStrictMode()); | ||
|  |     })(); | ||
|  | 
 | ||
|  |     (function() { | ||
|  |         "use strict"; | ||
|  |          assert(isStrictMode()); | ||
|  |     })(); | ||
|  | 
 | ||
|  | 
 | ||
|  |     (() => { | ||
|  |         assert(isStrictMode()); | ||
|  |     })(); | ||
|  | 
 | ||
|  |     (() => { | ||
|  |         "use strict"; | ||
|  |         assert(isStrictMode()); | ||
|  |     })(); | ||
|  | 
 | ||
|  |     console.log("PASS"); | ||
|  | } catch (e) { | ||
|  |     console.log("FAIL: " + e); | ||
|  | } |