/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/.
*/
function checkCtor(global, name, description) {
ok(Object.isFrozen(global[name]), `${description} ${name} is frozen`);
ok(
Object.isSealed(global[name].prototype),
`${description} ${name}.prototype is sealed`
);
let descr = Object.getOwnPropertyDescriptor(global, name);
ok(!descr.configurable, `${description} ${name} should be non-configurable`);
ok(!descr.writable, `${description} ${name} should not be writable`);
}
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.