Ticket #3739: 3739.patch
File 3739.patch, 1.2 KB (added by , 16 years ago) |
---|
-
_source/includes/scriptcompressor.js
387 387 case Token.CALL : 388 388 var child = node.getFirstChild(), 389 389 childType = child.getType(), 390 isFunctionCall = ( childType == Token.FUNCTION || childType == Token.SETPROP || childType == Token.SETELEM );390 isFunctionCall = ( childType == Token.FUNCTION || childType == Token.SETPROP || childType == Token.SETELEM || childType == Token.SETNAME ); 391 391 392 392 if ( childType == Token.NAME && child.getString() == 'PACKAGER_RENAME' ) 393 393 { -
test/test.js
21 21 [ "function Test( param ) { var myVar = 1; return myVar + param; }; Test( 'Sample' );", 22 22 "function a(b){var c=1;return c+b;};a('Sample');" ], 23 23 24 [ "var Test; ( Test = function( rtl ){ return rtl + 'y'; } )(); Test( 'x' );", 25 "var a;(a=function(b){return b+'y';})();a('x');" ], 26 24 27 [ "var result = 6 * 10 / 3 + 4;", 25 28 "var a=24;" ], 26 29