http://gitunderground.i2p/archive/youtube-dl/commit/60835ca16c052eb00bb9bccd44f8843edac66a2e?style=split&whitespace=show-all&show-outdated=
_test ( ' function f() { var ret = []; var l = [4, 2]; ' ' var log = function(e,i,a) { this.push([e,i,a]);}; ' ' l.forEach(log, ret); ' ' return [ret.length, ret[0][0], ret[1][1], ret[0][2]]} ' , [ 2 , 4 , 1 , [ 4 , 2 ] ] ) if __name__ == ' __main__ ' : if __name__ == ' __main__ ' : unittest . main ( ) unittest . main ( ) youtube_dl/jsinterp.py +15 -21 Unescape Escape Copy filename View File @@ -1113,37 +1113,31 @@ class JSInterpreter(object): index , how_many = map ( int , ( argvals + [...