export function warn(msg) { console.error(`[BScroll warn]: ${msg}`) } export function assert(condition, msg) { Iif (!condition) { throw new Error(('[BScroll] ' + msg)) } }