Explorar el Código

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

Manfred Kroehnert hace 11 años
padre
commit
e9e3b25608
Se han modificado 1 ficheros con 5 adiciones y 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');
+	});
 };