// We assume we can optimize arguments access in |f|. // // Then the apply-call invalidates the arguments optimization, // and creates a real arguments object. // // Test that x and y fetch the values from the args object when // that happens. function f1(x, y, o) { var res = 0; for (var i=0; i<50; i++) {
res += x + y; if (i > 10)
o.apply(null, arguments);
} return res;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.