Throw errors instead of strings. (#1974)

Blocks and generators
This commit is contained in:
Neil Fraser
2018-07-16 16:33:44 -07:00
committed by GitHub
parent 99ebefa1bf
commit c8bfc888c8
23 changed files with 55 additions and 55 deletions

View File

@@ -207,5 +207,5 @@ Blockly.Python['controls_flow_statements'] = function(block) {
case 'CONTINUE':
return 'continue\n';
}
throw 'Unknown flow statement.';
throw Error('Unknown flow statement.');
};