js/src/jit-test/tests/auto-regress/bug761864.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-32-cf4face65451-linux
michael@0 2 // Flags: -m -n
michael@0 3 //
michael@0 4 function printStatus (msg) {
michael@0 5 var lines = msg.split ("");
michael@0 6 }
michael@0 7 function printBugNumber (num) {
michael@0 8 var digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
michael@0 9 }
michael@0 10 var lfcode = new Array();
michael@0 11 lfcode.push("gczeal(4);");
michael@0 12 lfcode.push("jsTestDriverEnd();");
michael@0 13 lfcode.push("");
michael@0 14 lfcode.push("var BUGNUMBER = \"(none)\";\
michael@0 15 var summary = \"gen.close(); gen.throw(ex) throws ex forever\";\
michael@0 16 var actual, expect;\
michael@0 17 printBugNumber(BUGNUMBER);\
michael@0 18 printStatus(summary);\
michael@0 19 function gen() {\
michael@0 20 var x = 5, y = 7;\
michael@0 21 yield z;\
michael@0 22 }\
michael@0 23 var failed = false;\
michael@0 24 var it = gen();\
michael@0 25 try {\
michael@0 26 it.close();\
michael@0 27 var doThrow = true;\
michael@0 28 var thrown = \"foobar\";\
michael@0 29 try { } catch (e) { }\
michael@0 30 try { } catch (e) { }\
michael@0 31 throw \"it.throw(\\\"\" + thrown + \"\\\") failed\";\
michael@0 32 var stopPassed = false;\
michael@0 33 try { } catch (e) {\
michael@0 34 if (\"1234\")\
michael@0 35 stopPassed = true;\
michael@0 36 }\
michael@0 37 } catch (e) {}\
michael@0 38 ");
michael@0 39 var lfRunTypeId = -1;
michael@0 40 while (true) {
michael@0 41 var file = lfcode.shift(); if (file == undefined) { break; }
michael@0 42 if (file == "evaluate") {
michael@0 43 } else {
michael@0 44 loadFile(file);
michael@0 45 }
michael@0 46 }
michael@0 47 function loadFile(lfVarx) {
michael@0 48 try {
michael@0 49 if (lfVarx.substr(-3) == ".js") {
michael@0 50 } else {
michael@0 51 switch (lfRunTypeId) {
michael@0 52 default: evaluate(lfVarx);
michael@0 53 }
michael@0 54 }
michael@0 55 } catch (lfVare) {
michael@0 56 print(lfVare);
michael@0 57 }
michael@0 58 }

mercurial