// objects with computed properties only function testComputedProperties() { for (let numOfProps of objectSizes) {
let obj = Function(
`${generateObjectLiteral(0, numOfProps)}; return obj;`
).call();
assertPropCount(obj, numOfProps);
}
}
// objects with one computed properties and the rest are normal; function testMixedProperties() { for (let numOfProps of objectSizes) {
let obj = Function(
`${generateObjectLiteral(numOfProps, 1)}; return obj;`
).call();
assertPropCount(obj, numOfProps + 1);
}
}
// objects with normal properties only function testNormalProperties() { for (let numOfProps of objectSizes) {
let obj = Function(
`${generateObjectLiteral(numOfProps, 0)}; return obj;`
).call();
assertPropCount(obj, numOfProps);
}
}
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.