js/src/jit-test/tests/auto-regress/bug781364.js

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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