Browse Source

amberc.js: set RethrowErrorHandler before compilation

Manfred Kroehnert 12 năm trước cách đây
mục cha
commit
8e49cde518
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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();
 	});