1 2 3 4 5 6 7 8 9 10
function f() { try { for ( var i = 7; i > -2; i-- ) new Array(i).join('*'); } catch (e) { return e instanceof RangeError; } return false; } assertEq(f(), true);