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.

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

mercurial