Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/latin1/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  assorted.js   Sprache: JAVA

 
// Reflect.parse Latin1
var ast = Reflect.parse("function f() { return 3; }");
assertEq(ast.body[0].id.name, "f");
assertEq(isLatin1(ast.body[0].id.name), true);

// Reflect.parse TwoByte
var ast = Reflect.parse("function f\u1200() { return 3; }");
assertEq(ast.body[0].id.name, "f\u1200");

if (Object.prototype.toSource) {
  // obj.toSource Latin1
  var o = {};
  Object.defineProperty(o, "prop", {get: function() { return 1; },
                                    set: function() { return 2; },
                                    enumerable: true, configurable: true});
  assertEq(o.toSource(), "({get prop() { return 1; }, set prop() { return 2; }})");

  // obj.toSource TwoByte
  Object.defineProperty(o, "prop", {get: function() { return "\u1200"; },
                                    set: function() { return "\u1200"; },
                                    enumerable: true});
  assertEq(o.toSource(), '({get prop() { return "\\u1200"; }, set prop() { return "\\u1200"; }})');

  var ff = function() { return 10; };
  ff.toSource = function() { return "((11))"; }
  Object.defineProperty(o, "prop", {get: ff, set: ff, enumerable: true});
  assertEq(o.toSource(), "({get prop(11), set prop(11)})");
}

// XDR
load(libdir + 'bytecode-cache.js');

// Latin1 string constant
test = "'string123';";
evalWithCache(test, { assertEqBytecode: true, assertEqResult : true });

// TwoByte string constant
test = "'string\u1234';";
evalWithCache(test, { assertEqBytecode: true, assertEqResult : true });

Messung V0.5
C=83 H=100 G=91

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

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