Browse Source

amberc.js: globalJsVariables is defined on the smalltalk, not the globals object

Manfred Kroehnert 10 years ago
parent
commit
7c7a5aeb43
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cli/support/amberc.js

+ 1 - 1
cli/support/amberc.js

@@ -339,7 +339,7 @@ function create_compiler(configuration) {
 		configuration.globals.ErrorHandler._register_(configuration.globals.RethrowErrorHandler._new());
 
 		if(0 !== configuration.jsGlobals.length) {
-			var jsGlobalVariables = configuration.globals.globalJsVariables;
+			var jsGlobalVariables = configuration.smalltalk.globalJsVariables;
 			jsGlobalVariables.push.apply(jsGlobalVariables, configuration.jsGlobals);
 		}