1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug535930.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +(function () { 1.5 + p = function () { 1.6 + Set() 1.7 + }; 1.8 + var Set = function () {}; 1.9 + for (var x = 0; x < 5; x++) { 1.10 + Set = function (z) { 1.11 + return function () { 1.12 + [z] 1.13 + } 1.14 + } (x) 1.15 + } 1.16 +})() 1.17 + 1.18 +/* 1.19 + * bug 535930, mistakenly generated code to GetUpvar and crashed inside the call. 1.20 + * so don't crash. 1.21 + */ 1.22 +