10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Add unsafe assertion

This commit is contained in:
Mickaël Véril 2020-03-17 13:48:42 +01:00
parent 66e47a46ee
commit 97f25af23d

View File

@ -339,6 +339,9 @@ class dataFileBase {
}
});
console.assert(double.length===0,"Double found",double,dat.sourceFile)
for (const ex of dat.excitations) {
console.assert(Number.isNaN(ex.T1.valueOf()) | ex.T1>50 | ex.isUnsafe==true,"Must be unsafe",dat,ex)
}
return dat
}
}