mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[jsinterp] 'reverse' modifies the array in place (fixes #3334)
This commit is contained in:
		| @@ -98,7 +98,8 @@ class JSInterpreter(object): | ||||
|                 return argvals[0].join(obj) | ||||
|             if member == 'reverse': | ||||
|                 assert len(argvals) == 0 | ||||
|                 return obj[::-1] | ||||
|                 obj.reverse() | ||||
|                 return obj | ||||
|             if member == 'slice': | ||||
|                 assert len(argvals) == 1 | ||||
|                 return obj[argvals[0]:] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz