ast: stop this script cannot yield anymore

This commit is contained in:
Thomas Weber committed 2020-08-23 11:15:14 -05:00
1 parent 9555b68381
commit 7b62efcb7f
1 file changed
-3
-3
View File
@@ -716,9 +716,6 @@ class ScriptTreeGenerator {
kind: 'control.stopOthers'
};
} else if (level === 'this script') {
if (!this.isProcedure) {
this.yields = true;
}
return {
kind: 'control.stopScript'
};