childCtor.base = function(me, methodName, var_args) {
    // Copying using loop to avoid deop due to passing arguments object to
    // function. This is faster in many JS engines as of late 2014.
    var args = new Array(arguments.length - 2);
    for (var i = 2; i < arguments.length; i++) {
      args[i - 2] = arguments[i];
    }
    return parentCtor.prototype[methodName].apply(me, args);
  };

aways new array



--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/the-base-js-super-call-have-gc-bug-tp53497.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to