1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/testCallElemAfterGC.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +// vim: set ts=8 sts=4 et sw=4 tw=99: 1.5 + 1.6 +function A() { 1.7 + this.x = 12; 1.8 + this.y = function () { return this.x; }; 1.9 + this[1] = function () { return this.x; }; 1.10 +} 1.11 + 1.12 +function f(obj, key){ 1.13 + assertEq(obj[key](), 12); 1.14 +} 1.15 + 1.16 +a = new A(); 1.17 +f(a, "y"); 1.18 +f(a, "y"); 1.19 +f(a, 1); 1.20 +gc(); 1.21 +f(a, "y"); 1.22 +f(a, "y"); 1.23 +