Allow implicit type conversion.
This commit is contained in:
parent
14a9f13ce8
commit
b301a2f8b9
4 changed files with 3 additions and 4 deletions
|
@ -383,7 +383,7 @@ Interpreter.prototype.isRunning = function(b) {
|
|||
|
||||
Interpreter.prototype.startSubstack = function(b, isLoop, secondSubstack) {
|
||||
// Start the substack of a control structure command such as if or forever.
|
||||
b.isLoop = Boolean(isLoop);
|
||||
b.isLoop = !!isLoop;
|
||||
this.activeThread.stack.push(b); // remember the block that started the substack
|
||||
if (!secondSubstack) {
|
||||
this.activeThread.nextBlock = b.substack;
|
||||
|
|
Reference in a new issue