Fix font regression

This commit is contained in:
Paulo Gustavo Veiga 2021-12-23 08:24:15 -08:00
parent 7fe3631b86
commit c2189a31fa

View File

@ -70,7 +70,7 @@ class Font {
setSize(value) {
const size = Number.parseInt(value, 10);
$assert(!Number.isFinite(size), 'size must be a valid integer');
$assert(Number.isFinite(size), `size must be a valid integer: ${value}`);
this._size = size;
}