Move assert helper to utility

This commit is contained in:
Shaunak Kishore
2015-09-12 20:32:39 -04:00
parent 7650575a34
commit 1db6bb4eeb
3 changed files with 7 additions and 16 deletions

View File

@ -1,10 +1,3 @@
function assert(condition, message) {
if (!condition) {
console.log(message);
throw new Error;
}
}
function get_final_bridges(glyph, original_bridges) {
var set = {};
var result = original_bridges.concat(glyph.manual.bridges_added);