// Ensure JSOp::GetBoundName executes [[Has]], [[Get]], and [[Set]] the correct // number of times.
function testInc() { function outer() {
with (env) { // The inner function can be Warp-compiled, but has a with-environment // on its scope chain. returnfunction() { // The increment operator is compiled to JSOp::GetBoundName. return ++prop;
}
}
}
var count_get = 0; var count_has = 0; var count_set = 0;
function testCompoundAssign() { function outer() {
with (env) { // The inner function can be Warp-compiled, but has a with-environment // on its scope chain. returnfunction() { // The compound assignment operator is compiled to JSOp::GetBoundName. return prop += 1;
}
}
}
var count_get = 0; var count_has = 0; var count_set = 0;
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.