fix delay

This commit is contained in:
antelle 2016-04-23 18:34:49 +03:00
parent b16f07b72c
commit 15b25c8395
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ AutoTypeRunner.prototype.tryParseCommand = function(op) {
if (isNaN(+op.arg)) {
throw 'Bad delay: ' + op.arg;
}
if (op.arg <= 0) {
if (op.arg < 0) {
throw 'Delay requires positive interval';
}
op.arg = +op.arg;