real.js
function _safelyCall(isCatch, fn, ctx) {
    if (!fn) return

    if (isCatch) {
        try {
            fn.call(ctx)
        } catch(e) {
            consoler.errorTrace(e)
        }
    } else {
        fn.call(ctx)
    }
}
function _safelyCall(isCatch, fn, ctx) {
    if (!fn) return

    if (isCatch) {
        try {
            fn.call(ctx)
        } catch(e) {
            consoler.errorTrace(e)
        }
    } else {
        fn.call(ctx)
    }
}
Call method and catch error then log by console.log