2
0
فهرست منبع

amberc.js: compose_js_files() resolves into configuration

Manfred Kroehnert 10 سال پیش
والد
کامیت
fc103a7733
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      cli/support/amberc.js

+ 3 - 3
cli/support/amberc.js

@@ -476,8 +476,8 @@ function verify(configuration) {
 /**
  * Synchronous function.
  * Concatenates compiled JavaScript files into one file in the correct order.
- * The name of the produced file is given by configuration.program (set by the last commandline option).
- * Returns a Promise.
+ * The name of the produced file is given by configuration.program.
+ * Returns a Promise which resolves into configuration.
  */
 function compose_js_files(configuration) {
 	return new Promise(function(resolve, reject) {
@@ -555,7 +555,7 @@ function compose_js_files(configuration) {
 		});
 		console.log('Done.');
 		fileStream.end();
-		resolve(true);
+		resolve(configuration);
 	});
 };