function testBug502914() { // Assigning a non-function to a function-valued property on trace should // bump the shape. function f1() {} function C() {} var x = C.prototype = {m: f1};
x.m(); // brand scope var arr = [new C, new C, new C, x]; try { for (var i = 0; i < 4; i++) {
arr[i].m = 12;
x.m(); // should throw last time through
}
} catch (exc) { return exc.constructor.name;
} return"no exception";
}
assertEq(testBug502914(), "TypeError");
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.