Blame view

node_modules/better-scroll/src/util/debug.js 181 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
  export function warn(msg) {
    console.error(`[BScroll warn]: ${msg}`)
  }
  
  export function assert(condition, msg) {
    if (!condition) {
      throw new Error(('[BScroll] ' + msg))
    }
  }