Explorar o código

amberc.js: set RethrowErrorHandler before compilation

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

+ 1 - 0
bin/amberc.js

@@ -406,6 +406,7 @@ AmberC.prototype.create_compiler = function(compilerFilesArray) {
 		content = content + 'return smalltalk;})();';
 		self.defaults.smalltalk = eval(content);
 		console.log('Compiler loaded');
+		self.defaults.smalltalk.ErrorHandler._setCurrent_(self.defaults.smalltalk.RethrowErrorHandler._new());
 
 		self.compile();
 	});