michael@0: // for-of can iterate arguments objects for other active frames. michael@0: michael@0: load(libdir + "iteration.js"); michael@0: michael@0: Object.prototype[std_iterator] = Array.prototype[std_iterator]; michael@0: michael@0: var s; michael@0: function g(obj) { michael@0: for (var v of obj) michael@0: s += v; michael@0: } michael@0: michael@0: function f() { michael@0: g(arguments); michael@0: } michael@0: michael@0: s = ''; michael@0: f(1, 2, 3); michael@0: assertEq(s, '123');