js/src/jit-test/tests/jaeger/recompile/bug659766.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/jaeger/recompile/bug659766.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +var gTestcases = new Array;
     1.5 +var gTc = gTestcases;
     1.6 +function TestCase(n, d, e, a) {
     1.7 +  this.description=d
     1.8 +  this.reason=''
     1.9 +  gTestcases[gTc++]=this
    1.10 +}
    1.11 +TestCase.prototype.dump=function () + toPrinted(this.description) + toPrinted(this.reason) + '\n';
    1.12 +function toPrinted(value) value=value.replace(/\\n/g, 'NL').replace(/[^\x20-\x7E]+/g, escapeString);
    1.13 +function escapeString (str) {
    1.14 +  try {
    1.15 +     err
    1.16 +  } catch(ex) { }
    1.17 +}
    1.18 +function jsTestDriverEnd() {
    1.19 +  for (var i = 0; i < gTestcases.length; i++)
    1.20 +  gTestcases[i].dump()
    1.21 +}
    1.22 +var SECTION = "dowhile-007";
    1.23 +DoWhile();
    1.24 +function DoWhile( object ) result1=false;
    1.25 +new TestCase(
    1.26 +    SECTION,
    1.27 +    "break one: ",
    1.28 +    result1 
    1.29 +);
    1.30 +jsTestDriverEnd();
    1.31 +new TestCase( SECTION, "'�O� �:i��'.match(new RegExp('.+'))", [], '�O� �:i��');
    1.32 +jsTestDriverEnd();

mercurial