Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/tests/non262/Record/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 925 B image not shown  

Quelle  constructor.js   Sprache: JAVA

 
// |reftest| skip-if(!this.hasOwnProperty("Record"))

assertThrowsInstanceOf(
  () => new Record(),
  TypeError,
  "Record is not a constructor"
);

assertEq(typeof Record({}), "record");
assertEq(typeof Object(Record({})), "object");
assertEq(Record({}) instanceof Record, false);

// TODO: It's still not decided what the prototype of records should be
//assertThrowsInstanceOf(() => Object(Record({})) instanceof Record, TypeError);
// assertEq(Record.prototype, null);
// assertEq(Record({}).__proto__, null);
// assertEq(Object(Record({})).__proto__, null);

assertThrowsInstanceOf(
  () => Record(),
  TypeError,
  "can't convert undefined to object"
);

assertThrowsInstanceOf(
  () => Record(undefined),
  TypeError,
  "can't convert undefined to object"
);

assertThrowsInstanceOf(
  () => Record(null),
  TypeError,
  "can't convert null to object"
);

if (typeof reportCompare === "function") reportCompare(0, 0);

Messung V0.5
C=86 H=99 G=92

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.