|
@@ -1,6 +1,20 @@
|
|
|
+"use strict";
|
|
|
+/*
|
|
|
+do not use Class here - IE8 does not understande overloeded toString method.
|
|
|
+
|
|
|
var Class = require("rtl.js").Class;
|
|
|
|
|
|
exports.Error = Class.extend({
|
|
|
init: function CompileError(msg) {this.__msg = msg;},
|
|
|
toString: function(){return this.__msg;}
|
|
|
});
|
|
|
+*/
|
|
|
+function CompileError(msg){
|
|
|
+ this.__msg = msg;
|
|
|
+}
|
|
|
+
|
|
|
+CompileError.prototype.toString = function(){
|
|
|
+ return this.__msg;
|
|
|
+};
|
|
|
+
|
|
|
+exports.Error = CompileError;
|