1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug934789-2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +load(libdir + "asserts.js"); 1.5 +assertThrowsInstanceOf( 1.6 + function() { 1.7 + function foo() {} 1.8 + foo = null; 1.9 + (function bar(e) { 1.10 + try { 1.11 + (function() { e; }); 1.12 + throw 1; 1.13 + } catch (e) { 1.14 + foo(); 1.15 + } 1.16 + })(); 1.17 + }, 1.18 + TypeError);