Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

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.2 Sekunden  ¤

*© 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002