소스 검색

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);
 	});
 };