Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/tests/test262/built-ins/Set/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 751 B image not shown  

Quelle  set-newtarget.js   Sprache: JAVA

 
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-set-constructor
description: >
    Set ( [ iterable ] )

    When the Set function is called with optional argument iterable the following steps are taken:

    ...
    2. Let set be OrdinaryCreateFromConstructor(NewTarget, "%SetPrototype%", «‍[[SetData]]» ).
    ...

---*/


var s1 = new Set();

assert.sameValue(
  Object.getPrototypeOf(s1),
  Set.prototype,
  "`Object.getPrototypeOf(s1)` returns `Set.prototype`"
);

var s2 = new Set([1, 2]);

assert.sameValue(
  Object.getPrototypeOf(s2),
  Set.prototype,
  "`Object.getPrototypeOf(s2)` returns `Set.prototype`"
);

reportCompare(0, 0);

Messung V0.5
C=95 H=83 G=88

¤ Dauer der Verarbeitung: 0.14 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.