all files / src/util/ debug.js

66.67% Statements 2/3
50% Branches 1/2
100% Functions 2/2
66.67% Lines 2/3
1 2 3 4 5 6 7 8 9        51×      
export function warn(msg) {
  console.error(`[BScroll warn]: ${msg}`)
}
 
export function assert(condition, msg) {
  Iif (!condition) {
    throw new Error(('[BScroll] ' + msg))
  }
}