diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /js/src/jit-test/tests/auto-regress/bug746376.js | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug746376.js')
-rw-r--r-- | js/src/jit-test/tests/auto-regress/bug746376.js | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug746376.js b/js/src/jit-test/tests/auto-regress/bug746376.js new file mode 100644 index 000000000..7cbde055c --- /dev/null +++ b/js/src/jit-test/tests/auto-regress/bug746376.js @@ -0,0 +1,65 @@ +// Binary: cache/js-dbg-64-67bf9a4a1f77-linux +// Flags: --ion-eager +// +var callStack = new Array(); +var gTestcases = new Array(); +var gTc = gTestcases.length; +function TestCase(n, d, e, a) { + this.expect = e; + this.actual = a; + this.passed = getTestCaseResult(e, a); + this.reason = ''; + this.bugnumber = typeof(BUGNUMER) != 'undefined' ? BUGNUMBER : ''; + this.type = (typeof window == 'undefined' ? 'shell' : 'browser'); + gTestcases[gTc++] = this; +} +function reportCompare (expected, actual, description) { + var output = ""; + if (typeof description == "undefined") + if (expected != actual) + printStatus ("Expected value '" + toPrinted(expected) + + "' matched actual value '" + toPrinted(actual) + "'"); + var testcase = new TestCase("unknown-test-name", description, expected, actual); + testcase.reason = output; + if (testcase.passed) { } + return testcase.passed; +} +function enterFunc (funcName) { + var lastFunc = callStack.pop(); + reportCompare(funcName, lastFunc, "Test driver failure wrong exit function "); +} +function getTestCaseResult(expected, actual) {} +var lfcode = new Array(); +lfcode.push("\ +var summary = 'decompilation of \"let with with\" ';\ +var actual = '';\ +var expect = '';\ +test();\ +function test() {\ + enterFunc ('test');\ + gczeal(2);\ + for (let q = 0; q < 50; ++q) {\ + new Function('for (var i = 0; i < 5; ++i) { } ')();\ + var w = 'r'.match(/r/);\ + new Function('for (var j = 0; j < 1; ++j) { } ')();\ + }\ + reportCompare(expect, actual, summary);\ +}\ +"); +delete Debugger; +while (true) { + var file = lfcode.shift(); if (file == undefined) { break; } + if (file == "evaluate") { + } else { + loadFile(file); + } +} +function loadFile(lfVarx) { + try { + if (lfVarx.substr(-3) == ".js") { + } else { + evaluate(lfVarx); + } + } catch (lfVare) { + } +} |