js/src/jit-test/tests/jaeger/bug549602.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 version(180)
michael@0 2 function f1(code) {
michael@0 3 var c
michael@0 4 var t = code.replace(/s/, "")
michael@0 5 var f = new Function(code)
michael@0 6 var o
michael@0 7 e = v = f2(f, c)
michael@0 8 }
michael@0 9 function f2(f, e) {
michael@0 10 try {
michael@0 11 a = f()
michael@0 12 } catch(r) {
michael@0 13 var r = g()
michael@0 14 }
michael@0 15 }
michael@0 16 g1 = [{
michael@0 17 text: "(function sum_slicing(array){return array==0?0:a+sum_slicing(array.slice(1))})",
michael@0 18 test: function (f) {
michael@0 19 f([, 2]) == ""
michael@0 20 }
michael@0 21 }];
michael@0 22 (function () {
michael@0 23 for (var i = 0; i < g1.length; ++i) {
michael@0 24 var a = g1[i]
michael@0 25 var text = a.text
michael@0 26 var f = eval(text.replace(/@/, ""))
michael@0 27 if (a.test(f)) {}
michael@0 28 }
michael@0 29 }())
michael@0 30 f1("for(let a=0;a<6;a++){print([\"\"].some(function(){false>\"\"}))}")
michael@0 31

mercurial