Explorar o código

amberc.js: initialize closure_jar to empty string if parameter is undefined

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

+ 1 - 1
bin/amberc.js

@@ -82,7 +82,7 @@ var path = require('path'),
  */
 function AmberC(amber_dir, closure_jar) {
 	this.amber_dir = amber_dir;
-	this.closure_jar = closure_jar;
+	this.closure_jar = closure_jar || '';
 	this.kernel_libraries = ['boot', 'Kernel-Objects', 'Kernel-Classes', 'Kernel-Methods',
 	                         'Kernel-Collections', 'Kernel-Exceptions', 'Kernel-Transcript',
 	                         'Kernel-Announcements'];