kopia lustrzana https://github.com/backface/turtlestitch
catch unsupported symbol names
rodzic
e492817349
commit
0df29d3f34
|
@ -400,8 +400,7 @@ SymbolMorph.prototype.renderShape = function (ctx, aColor) {
|
|||
this.renderSymbolGlobe(ctx, aColor);
|
||||
break;
|
||||
default:
|
||||
// +++ to do: raise an error
|
||||
return ;
|
||||
throw new Error('unknown symbol name: "' + this.name + '"');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue