js/src/jit-test/tests/auto-regress/bug781364.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-21b4797e4cb3-linux
michael@0 2 // Flags: -m -a --ion-eager
michael@0 3 //
michael@0 4 k = m
michael@0 5 function h() {
michael@0 6 switch (true) {
michael@0 7 default:
michael@0 8 x = newGlobal('')
michael@0 9 }
michael@0 10 return function(f, code) {
michael@0 11 try {
michael@0 12 evalcx(code, x)
michael@0 13 } catch (e) {}
michael@0 14 }
michael@0 15 }
michael@0 16 function m() {
michael@0 17 f()
michael@0 18 }
michael@0 19 function g(code) {
michael@0 20 f = new Function(code);
michael@0 21 k(f, code)
michael@0 22 }
michael@0 23 g("k=h()")
michael@0 24 g("\
michael@0 25 a='';\
michael@0 26 Object.defineProperty(this,\"b\",{get:function(){a=this.d()}});\
michael@0 27 Object.defineProperty(this,\"c\",{get:function(){b}});\
michael@0 28 d=2;\
michael@0 29 b\
michael@0 30 ");
michael@0 31 g("b");
michael@0 32 g("b");
michael@0 33 g("for(v of c);");
michael@0 34 g("a=eval(\"function f(){}\");b")

mercurial