mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[swfinterp] Add more builtins and improve static variables
This commit is contained in:
		
							
								
								
									
										18
									
								
								test/swftests/ConstArrayAccess.as
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								test/swftests/ConstArrayAccess.as
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| // input: [] | ||||
| // output: 4 | ||||
|  | ||||
| package { | ||||
| public class ConstArrayAccess { | ||||
| 	private static const x:int = 2; | ||||
| 	private static const ar:Array = ["42", "3411"]; | ||||
|  | ||||
|     public static function main():int{ | ||||
|         var c:ConstArrayAccess = new ConstArrayAccess(); | ||||
|         return c.f(); | ||||
|     } | ||||
|  | ||||
|     public function f(): int { | ||||
|     	return ar[1].length; | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister