Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
function checkevalblock(block) {
block = block();
if (Type(block) === 'list') { return block; }
throw new Error(__("Expected block"));
}
self.routines["do.while"] = function(block, tf) {
block = checkevalblock(block);
do {
self.execute(block);
} while (tf());
};
self.routines["do.while"].noeval = true;
self.routines["while"] = function(tf, block) {
block = checkevalblock(block);
while (tf()) {
self.execute(block);
}
};
self.routines["while"].noeval = true;
self.routines["do.until"] = function(block, tf) {
block = checkevalblock(block);
do {
self.execute(block);
} while (!tf());
};
function checkevalblock(block) {
block = block();
if (Type(block) === 'list') { return block; }
throw new Error(__("Expected block"));
}
self.routines["do.while"] = function(block, tf) {
block = checkevalblock(block);
do {
self.execute(block);
} while (tf());
};
self.routines["do.while"].noeval = true;
self.routines["while"] = function(tf, block) {
block = checkevalblock(block);
while (tf()) {
self.execute(block);
}
};
self.routines["while"].noeval = true;
self.routines["do.until"] = function(block, tf) {
block = checkevalblock(block);
do {
self.execute(block);
} while (!tf());
last = self.execute(statements);
step = (control.length) ? aexpr(self.evaluateExpression(control.slice())) : sign(limit - start);
current += step;
}
return last;
};
function checkevalblock(block) {
block = block();
if (Type(block) === 'list') { return block; }
throw new Error(__("Expected block"));
}
self.routines["do.while"] = function(block, tf) {
block = checkevalblock(block);
do {
self.execute(block);
} while (tf());
};
self.routines["do.while"].noeval = true;
self.routines["while"] = function(tf, block) {
block = checkevalblock(block);
while (tf()) {
self.execute(block);
}
};
self.routines["while"].noeval = true;
last = self.execute(statements);
step = (control.length) ? aexpr(self.evaluateExpression(control.slice())) : sign(limit - start);
current += step;
}
return last;
};
function checkevalblock(block) {
block = block();
if (Type(block) === 'list') { return block; }
throw new Error(__("Expected block"));
}
self.routines["do.while"] = function(block, tf) {
block = checkevalblock(block);
do {
self.execute(block);
} while (tf());
};
self.routines["do.while"].noeval = true;
self.routines["while"] = function(tf, block) {
block = checkevalblock(block);
while (tf()) {
self.execute(block);
}
};
self.routines["while"].noeval = true;