diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/basic/testBrandedVsGeneric.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/basic/testBrandedVsGeneric.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,17 @@ +const C = function (a, b, c) { + return function C() { + this.m1 = function () a; + this.m2 = function () b; + this.m3 = function () c; + } +}(2,3,4); +var c = new C(); +var d = function (e) {return {m0: function () e}}(5); +for (var i = 0; i < 5; i++) + d.m0(); +C.call(d); +d.__iterator__ = function() {yield 55}; +for (i = 0; i < 5; i++) { + for (j in d) + print(j); +}