Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/xpconnect/tests/unit/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

SSL test_xrayed_iterator.js

  Interaktion und
PortierbarkeitJAVA
 

Services.prefs.setBoolPref("security.allow_eval_with_system_principal"true);
registerCleanupFunction(() => {
  Services.prefs.clearUserPref("security.allow_eval_with_system_principal");
});

function run_test() {

  var toEval = [
    "var customIterator = {",
    "  _array: [6, 7, 8, 9]",
    "};",
    "customIterator[Symbol.iterator] = function* () {",
    "    for (var i = 0; i < this._array.length; ++i)",
    "      yield this._array[i];",
    "};"
  ].join('\n');

  function checkIterator(iterator) {
    var control = [6789];
    var i = 0;
    for (var item of iterator) {
      Assert.equal(item, control[i]);
      ++i;
    }
  }

  // First, try in our own scope.
  eval(toEval);
  checkIterator(customIterator);

  // Next, try a vanilla CCW.
  var sbChrome = Cu.Sandbox(this);
  Cu.evalInSandbox(toEval, sbChrome, '1.7');
  checkIterator(sbChrome.customIterator);

  // Finally, try an Xray waiver.
  var sbContent = Cu.Sandbox('http://www.example.com');
  Cu.evalInSandbox(toEval, sbContent, '1.7');
  checkIterator(Cu.waiveXrays(sbContent.customIterator));
}

Messung V0.5 in Prozent
C=95 H=97 G=95

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.72Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-10) ¤

*Eine klare Vorstellung vom Zielzustand






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.