Browse Source

Fixed amberc.js Issue#617

Thomas Rake 10 years ago
parent
commit
df326c1aaa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/amberc.js

+ 1 - 1
bin/amberc.js

@@ -607,7 +607,7 @@ AmberC.prototype.compose_js_files = function() {
 	});
 	if (undefined !== defaults.main) {
 		console.log('Adding call to: %s>>main', defaults.main);
-		fileStream.write('smalltalk.' + defaults.main + '._main()');
+		fileStream.write('global_smalltalk.' + defaults.main + '._main()');
 	}
 
 	if (undefined !== defaults.mainfile && fs.existsSync(defaults.mainfile)) {