mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
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:
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user