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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 var gTestcases = new Array;
michael@0 2 var gTc = gTestcases;
michael@0 3 function TestCase(n, d, e, a) {
michael@0 4 this.description=d
michael@0 5 this.reason=''
michael@0 6 gTestcases[gTc++]=this
michael@0 7 }
michael@0 8 TestCase.prototype.dump=function () + toPrinted(this.description) + toPrinted(this.reason) + '\n';
michael@0 9 function toPrinted(value) value=value.replace(/\\n/g, 'NL').replace(/[^\x20-\x7E]+/g, escapeString);
michael@0 10 function escapeString (str) {
michael@0 11 try {
michael@0 12 err
michael@0 13 } catch(ex) { }
michael@0 14 }
michael@0 15 function jsTestDriverEnd() {
michael@0 16 for (var i = 0; i < gTestcases.length; i++)
michael@0 17 gTestcases[i].dump()
michael@0 18 }
michael@0 19 var SECTION = "dowhile-007";
michael@0 20 DoWhile();
michael@0 21 function DoWhile( object ) result1=false;
michael@0 22 new TestCase(
michael@0 23 SECTION,
michael@0 24 "break one: ",
michael@0 25 result1
michael@0 26 );
michael@0 27 jsTestDriverEnd();
michael@0 28 new TestCase( SECTION, "'�O� �:i��'.match(new RegExp('.+'))", [], '�O� �:i��');
michael@0 29 jsTestDriverEnd();

mercurial