Explorar o código

amberc.js: fix compile time calculation + restore console.log

Manfred Kroehnert %!s(int64=11) %!d(string=hai) anos
pai
achega
e9e3b25608
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      cli/support/amberc.js

+ 5 - 1
cli/support/amberc.js

@@ -170,7 +170,11 @@ AmberC.prototype.main = function(configuration, finished_callback) {
 	}, function(error) {
 		console.error(error);
 	})
-	.then(compose_js_files);
+	.then(compose_js_files)
+	.then(function() {
+		console.log = console.ambercLog;
+		console.timeEnd('Compile Time');
+	});
 };