js/src/jit-test/tests/auto-regress/bug754712.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.

     1 // Binary: cache/js-dbg-64-e8de64e7e9fe-linux
     2 // Flags: --ion-eager
     3 //
     4 function printStatus (msg) {}
     5 function printBugNumber (num) {}
     6 function reportCompare (expected, actual, description) {
     7     printStatus ("Expected value '" + toPrinted(expected) +  "' matched actual value '" + toPrinted(actual) + "'");
     8 }
     9 try  {
    10   reportCompare(expectCompile, actualCompile,  summary + ': compile actual');
    11 }   catch(ex)  {  }
    12 var lfcode = new Array();
    13 lfcode.push("\
    14 var bar = {\
    15     b: 2,\
    16 };\
    17 var results = [];\
    18 for each (let [key, value] in Iterator(bar))\
    19     results.push(key + \":\" + (results(isXMLName(), \"ok\")));\
    20 var expect = \"a:1;b:2\";\
    21 ");
    22 lfcode.push("\
    23 var BUGNUMBER = 244619;\
    24 var summary = 'Don\\'t Crash';\
    25 var actual = 'Crash';\
    26 function f1()\
    27   eval.call((enterFunc ('test')), \"var a = 'vodka'\");\
    28 gczeal(4);\
    29 reportCompare(expect, actual, summary);\
    30 ");
    31 while (true) {
    32 	var file = lfcode.shift(); if (file == undefined) { break; }
    33 	if (file == "evaluate") {
    34 	} else {
    35                 loadFile(file);
    36 	}
    37 }
    38 function loadFile(lfVarx) {
    39 	try {
    40 		if (lfVarx.substr(-3) == ".js") {
    41 			switch (lfRunTypeId) {			}
    42 		} else {
    43 			evaluate(lfVarx);
    44 		}
    45 	} catch (lfVare) {
    46 	}
    47 }

mercurial