Skip to content

Commit 7f27ca3

Browse files
committed
Fix saveGif parameter validation
1 parent 952e481 commit 7f27ca3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/image/loading_displaying.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ p5.prototype.saveGif = async function(
296296
notificationID: 'progressBar'
297297
}
298298
) {
299+
p5._validateParameters('saveGif', arguments);
299300
// validate parameters
300301
if (typeof fileName !== 'string') {
301302
throw TypeError('fileName parameter must be a string');

0 commit comments

Comments
 (0)