Merge pull request #2048 from dumganhar/remove-console-log

Removes fake console.log since it's implemented in native code now.
This commit is contained in:
Jare Guo
2017-10-17 03:02:19 -05:00
committed by GitHub
2 changed files with 1 additions and 12 deletions
-11
View File
@@ -25,17 +25,6 @@
'use strict';
var originLog = console.log;
// overwrite original console.log
try {
console.log = function () {
originLog.call(console, cc.js.formatStr.apply(null, arguments));
};
}
catch (e) {
}
function defineMacro (name, defaultValue) {
// if "global_defs" not preprocessed by uglify, just declare them globally,
// this may happened in release version's preview page.
+1 -1
View File
@@ -14,7 +14,7 @@ if (!Number.isInteger) {
};
}
if (!console.time) {
if (CC_JSB || !console.time) {
var Timer = window.performance || Date;
var _timerTable = Object.create(null);
console.time = function (label) {