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

Quelle  proxy.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.
/*---
es6id: 26.2.2.1
description: >
    The returned object has a proxy property which is the created Proxy object
    built with the given target and handler given parameters.
info: |
    Proxy.revocable ( target, handler )

    6. Perform CreateDataProperty(result, "proxy", p).
features: [Proxy]
---*/


var target = {
  attr: "foo"
};
var r = Proxy.revocable(target, {
  get: function(t, prop) {
    return t[prop] + "!";
  }
});

assert.sameValue(r.proxy.attr, "foo!");

reportCompare(0, 0);

Messung V0.5
C=85 H=100 G=92

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