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

Quelle  marked-atoms.js

  Sprache: JAVA
 

// Test basics of atom marking and check the isAtomMarked function works.

gczeal(0);
let global = newGlobal({newCompartment: true});
global.eval('var x = {}');
gc();

// Make an anonymous symbol and mark it in the global.
let atom = Symbol();
assertEq(isAtomMarked(this, atom), true);
assertEq(isAtomMarked(global, atom), false);
global.x[atom] = 0;
assertEq(isAtomMarked(global, atom), true);

// Make a named symbol (plus an atom for the description) and mark it.
let sym = Symbol("baz");
assertEq(isAtomMarked(this, sym), true);
assertEq(isAtomMarked(global, sym), false);
global.x[sym] = 0;
assertEq(isAtomMarked(global, sym), true);

Messung V0.5 in Prozent
C=89 H=100 G=94

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