1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug913749.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +y = new Float32Array(11); 1.5 +x = []; 1.6 + 1.7 +Object.defineProperty(x, 18, { 1.8 + get: (function() { 1.9 + y.length; 1.10 + }), 1.11 +}); 1.12 +this.toSource(); 1.13 + 1.14 +y = undefined; 1.15 + 1.16 +for (var i = 0; i < 3; i++) { 1.17 + try { 1.18 + x.toString(); 1.19 + assertEq(0, 1); 1.20 + } catch (e) { 1.21 + assertEq(e.message, "y is undefined"); 1.22 + } 1.23 +}