Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 831 B image not shown  

Quelle  bug1995289.js

  Sprache: JAVA
 

class Identity {
  constructor(target) {
    return target;
  }
}

class TargetHandler extends Identity {
  #proxy;

  constructor(target, proxy) {
    super(target);
    this.#proxy = proxy;
  }

  static getProxy(obj) {
    return obj.#proxy;
  }
}

class ReactiveHandler extends TargetHandler {
  #priv;

  constructor(target, proxy) {
    // Both the target and the proxy have the "#proxy" private field that stores the reference to the proxy
    new TargetHandler(target, proxy);
    super(proxy, proxy);
  }

  get(t, k, r) { throw "oops"; }

  defineProperty(t, k, desc) {
    ReactiveHandler.getProxy(t).#priv;
    return Reflect.defineProperty(t, k, desc);
  }
}

const target = {};
const proxy = new ReactiveHandler(target, new Proxy(target, ReactiveHandler.prototype));

for (var i = 0; i < 20; i++) {
  proxy[i] = i;
}

Messung V0.5 in Prozent
C=93 H=75 G=84

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.