@@ -14143,6 +14143,7 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
14143
14143
14144
14144
// Google closure compiler cannot handle Clazz.new or Clazz.super
14145
14145
14146
+ // BH 2025.01.31 added checks for JavaScript SyntaxError similar to other Error types
14146
14147
// BH 2024.11.23 implementing java.awt.Toolkit.getDefaultToolkit().getDesktopProperty("awt.multiClickInterval")
14147
14148
// BH 2024.06.22 adds Integer.getIngeger(String, int) (returning null)
14148
14149
// BH 2024.03.03 removes unnecessary loadClass("xxxx") on exceptionOf(e,"xxxx") call
@@ -15496,7 +15497,7 @@ var getClassName = function(obj, fAsClassName) {
15496
15497
return "Boolean";
15497
15498
if (obj instanceof Array || obj.__BYTESIZE)
15498
15499
return "Array";
15499
- if (obj instanceof ReferenceError || obj instanceof TypeError) {
15500
+ if (obj instanceof ReferenceError || obj instanceof TypeError || obj instanceof SyntaxError ) {
15500
15501
// note that this is not technically the case.
15501
15502
// we use this to ensure that try/catch delivers these as java.lang.Error instances
15502
15503
return "Error";
@@ -21207,14 +21208,30 @@ if(lineNum>=0){
21207
21208
21208
21209
TypeError.prototype.getMessage$ || (
21209
21210
21210
- ReferenceError.prototype.getMessage$ = TypeError.prototype.getMessage$
21211
- = ReferenceError.prototype.getMessage$ = TypeError.prototype.getLocalizedMessage$
21211
+ SyntaxError.prototype.getMessage$
21212
+ = ReferenceError.prototype.getMessage$
21213
+ = TypeError.prototype.getMessage$
21214
+ = SyntaxError.prototype.getLocalizedMessage$
21215
+ = ReferenceError.prototype.getLocalizedMessage$
21216
+ = TypeError.prototype.getLocalizedMessage$
21212
21217
= function(){ return (this.stack ? this.stack : this.message || this.toString()) + (this.getStackTrace ? this.getStackTrace$() : Clazz._getStackTrace())});
21213
21218
21214
- TypeError.prototype.getStackTrace$ = ReferenceError.prototype.getStackTrace$ = function() { return Clazz._getStackTrace() }
21215
- TypeError.prototype.printStackTrace$ = ReferenceError.prototype.printStackTrace$ = function() { printStackTrace(this,System.err) }
21216
- ReferenceError.prototype.printStackTrace$java_io_PrintStream = TypeError.prototype.printStackTrace$java_io_PrintStream = function(stream){stream.println$S(this + "\n" + this.stack);};
21217
- ReferenceError.prototype.printStackTrace$java_io_PrintWriter = TypeError.prototype.printStackTrace$java_io_PrintWriter = function(printer){printer.println$S(this + "\n" + this.stack);};
21219
+ TypeError.prototype.getStackTrace$
21220
+ = SyntaxError.prototype.getStackTrace$
21221
+ = ReferenceError.prototype.getStackTrace$
21222
+ = function() { return Clazz._getStackTrace() }
21223
+ TypeError.prototype.printStackTrace$
21224
+ = SyntaxError.prototype.printStackTrace$
21225
+ = ReferenceError.prototype.printStackTrace$
21226
+ = function() { printStackTrace(this,System.err) }
21227
+ ReferenceError.prototype.printStackTrace$java_io_PrintStream
21228
+ = TypeError.prototype.printStackTrace$java_io_PrintStream
21229
+ = SyntaxError.prototype.printStackTrace$java_io_PrintStream
21230
+ = function(stream){stream.println$S(this + "\n" + this.stack);};
21231
+ ReferenceError.prototype.printStackTrace$java_io_PrintWriter
21232
+ = TypeError.prototype.printStackTrace$java_io_PrintWriter
21233
+ = SyntaxError.prototype.printStackTrace$java_io_PrintWriter
21234
+ = function(printer){printer.println$S(this + "\n" + this.stack);};
21218
21235
21219
21236
Clazz.Error = Error;
21220
21237
0 commit comments