mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[swfinterp] Add support for calling methods on objects
This commit is contained in:
		
							
								
								
									
										21
									
								
								test/swftests/PrivateCall.as
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								test/swftests/PrivateCall.as
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| // input: [] | ||||
| // output: 9 | ||||
|  | ||||
| package { | ||||
| public class PrivateCall { | ||||
|     public static function main():int{ | ||||
|     	var f:OtherClass = new OtherClass(); | ||||
|         return f.func(); | ||||
|     } | ||||
| } | ||||
| } | ||||
|  | ||||
| class OtherClass { | ||||
| 	private function pf():int { | ||||
| 		return 9; | ||||
| 	} | ||||
|  | ||||
| 	public function func():int { | ||||
| 		return this.pf(); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister