mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +00:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
	
		
			324 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
	
		
			324 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|   | try { | ||
|  |     function foo() { } | ||
|  |     assert(foo.length === 0); | ||
|  |     assert((foo.length = 5) === 5); | ||
|  |     assert(foo.length === 0); | ||
|  | 
 | ||
|  |     function bar(a, b, c) {} | ||
|  |     assert(bar.length === 3); | ||
|  |     assert((bar.length = 5) === 5); | ||
|  |     assert(bar.length === 3); | ||
|  | 
 | ||
|  |     console.log("PASS"); | ||
|  | } catch (e) { | ||
|  |     console.log("FAIL: " + e); | ||
|  | } |