mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Fix #1493 Path#add crashes whith 1000000 segments
This commit is contained in:
parent
6cbf5292da
commit
fc5bb4b10e
2 changed files with 14 additions and 2 deletions
|
@ -611,3 +611,13 @@ test('Path#arcTo(from, through, to); where from, through and to all share the sa
|
|||
}
|
||||
equals(error != null, true, 'We expect this arcTo() command to throw an error');
|
||||
});
|
||||
|
||||
test('#1493 Path#add with 1000000 segments', function() {
|
||||
var path = new Path();
|
||||
for (var i=0; i<1000000; i++)
|
||||
{
|
||||
path.add(new Point(0,0));
|
||||
}
|
||||
path.clone();
|
||||
expect(0);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue