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);
|
this.renderSymbolGlobe(ctx, aColor);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// +++ to do: raise an error
|
throw new Error('unknown symbol name: "' + this.name + '"');
|
||||||
return ;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue