Показать сообщение отдельно
  #11 (permalink)  
Старый 10.01.2013, 19:31
sinistral
Посмотреть профиль Найти все сообщения от melky
 
Регистрация: 28.03.2011
Сообщений: 5,418

Чёртов виндовс... на линухе всё гладко - все мессаги выводятся в консоль!

флаг --trace_inlining, например, рассказывает об заинлайненных функциях
Код:
Did not inline call called from type (target not inlineable).
Inlined type called from type.number.
Did not inline call called from type (target not inlineable).
Inlined type called from type.undefined.
Did not inline call called from type (target not inlineable).
Inlined type called from type.func.
исходники для них:
/**
     * Вернёт строковое представление типа аргумента.
     * При необходимости вернёт [[Class]] в нижнем регистре.
     *
     * @param {?} x
     * @return {string}
     */
    function type(x) {
        var type = typeof(x);
        if (type === "object") {
            type = Object.prototype.toString.call(x).slice(8, -1).toLowerCase();
        }
        return type;
    }

    /**
     * Проверит, является ли аргумент функцией.
     *
     * @param {?} x
     * @return {boolean}
     */
    type.func = function (x) {
        return type(x) === "function";
    };
Ответить с цитированием