1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug487320.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +// Binary: cache/js-dbg-64-57213af4a45d-linux 1.5 +// Flags: 1.6 +// 1.7 +function outer(x) { 1.8 + return (function foo() { 1.9 + this.bar = foo; 1.10 + return x; 1.11 + })(); 1.12 +} 1.13 +print(outer(42)); 1.14 +print(bar()); // BOOM!