michael@0: // for-of can iterate strict arguments objects. 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 test() { michael@0: "use strict"; michael@0: for (var v of arguments) michael@0: s += v; michael@0: } michael@0: michael@0: s = ''; michael@0: test(); michael@0: assertEq(s, ''); michael@0: michael@0: s = ''; michael@0: test('a', 'b'); michael@0: assertEq(s, 'ab');