mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
release: Merge branch 'develop' into rc/v11.0.0
This commit is contained in:
@@ -35,7 +35,7 @@ const CONTINUE_STATEMENT = 'goto continue\n';
|
||||
* @returns Generated label or '' if unnecessary
|
||||
*/
|
||||
function addContinueLabel(branch: string, indent: string): string {
|
||||
if (branch.indexOf(CONTINUE_STATEMENT) !== -1) {
|
||||
if (branch.includes(CONTINUE_STATEMENT)) {
|
||||
// False positives are possible (e.g. a string literal), but are harmless.
|
||||
return branch + indent + '::continue::\n';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user