Source code

Revision control

Copy as Markdown

Other Tools

// for-of can iterate strict arguments objects.
load(libdir + "iteration.js");
Object.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
var s;
function test() {
"use strict";
for (var v of arguments)
s += v;
}
s = '';
test();
assertEq(s, '');
s = '';
test('a', 'b');
assertEq(s, 'ab');