Skip to content

Commit 4fdeb89

Browse files
hansonrhansonr
authored andcommitted
fixing TypeError does not have getLocaleMessage
1 parent 617ec32 commit 4fdeb89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sClazz.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5283,7 +5283,8 @@ if(lineNum>=0){
52835283
});
52845284

52855285

5286-
TypeError.prototype.getMessage$ || (TypeError.prototype.getMessage$ = function(){ return (this.stack ? this.stack : this.message || this.toString()) + (this.getStackTrace ? this.getStackTrace$() : Clazz._getStackTrace())});
5286+
TypeError.prototype.getMessage$ || (TypeError.prototype.getMessage$ = TypeError.prototype.getLocalizedMessage$
5287+
= function(){ return (this.stack ? this.stack : this.message || this.toString()) + (this.getStackTrace ? this.getStackTrace$() : Clazz._getStackTrace())});
52875288
TypeError.prototype.printStackTrace$ = function(){System.out.println(this + "\n" + this.stack)};
52885289
TypeError.prototype.printStackTrace$java_io_PrintStream = function(stream){stream.println$S(e + "\n" + e.stack);};
52895290

0 commit comments

Comments
 (0)