Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Error during JS execution

Offen
#712 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
java, javascript
Bereich
backend

Rechercherichtung

The report identifies the external XUI script and the HtmlUnit JavaScript parser, but does not name a repository file or test. Start by checking how HtmlUnit parses this script and whether its JavaScript compatibility settings cover the reserved word class. Done means reproducing the reported failure and adding a regression test that verifies the script executes without this exception.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

js-engine

We are getting the following error:

SCHWERWIEGEND: Error during JavaScript execution
======= EXCEPTION START ========
Exception class=[org.htmlunit.corejs.javascript.EvaluatorException]
org.htmlunit.ScriptException: identifier is a reserved word: class (https://.../auth/XUI/7.6437ffa8fa.js#1)
at org.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:1003)
at org.htmlunit.corejs.javascript.Context.call(Context.java:581)
at org.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:481)
at org.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:347)
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:833)
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:799)
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:1)
at org.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1156)
at org.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1028)
at org.htmlunit.html.ScriptElementSupport.executeScriptIfNeeded(ScriptElementSupport.java:193)
at org.htmlunit.html.ScriptElementSupport$1.execute(ScriptElementSupport.java:117)
at org.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:1051)
at org.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:998)
at org.htmlunit.corejs.javascript.Context.call(Context.java:581)
at org.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:481)
at org.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:347)
at org.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:930)
at org.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:903)
at org.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2599)
at org.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2592)
at org.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:56)
at org.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:100)
at org.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:433)
at org.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:156)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.htmlunit.corejs.javascript.EvaluatorException: identifier is a reserved word: class (https://.../auth/XUI/7.6437ffa8fa.js#1)
at org.htmlunit.javascript.HtmlUnitContextFactory$HtmlUnitErrorReporter.error(HtmlUnitContextFactory.java:431)
at org.htmlunit.corejs.javascript.Parser.addError(Parser.java:257)
at org.htmlunit.corejs.javascript.Parser.reportError(Parser.java:336)
at org.htmlunit.corejs.javascript.Parser.reportError(Parser.java:327)
at org.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3155)
at org.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2721)
at org.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2624)
at org.htmlunit.corejs.javascript.Parser.expExpr(Parser.java:2544)
at org.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2527)
at org.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2513)
at org.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2496)
at org.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2474)
at org.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2450)
at org.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2441)
at org.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2432)
at org.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2423)
at org.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2414)
at org.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2405)
at org.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2372)
at org.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2330)
at org.htmlunit.corejs.javascript.Parser.expr(Parser.java:2309)
at org.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1255)
at org.htmlunit.corejs.javascript.Parser.statement(Parser.java:1110)
at org.htmlunit.corejs.javascript.Parser.parseFunctionBody(Parser.java:735)
at org.htmlunit.corejs.javascript.Parser.function(Parser.java:914)
at org.htmlunit.corejs.javascript.Parser.function(Parser.java:848)
at org.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3091)
at org.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2721)
at org.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2624)
at org.htmlunit.corejs.javascript.Parser.expExpr(Parser.java:2544)
at org.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2527)
at org.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2513)
at org.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2496)
at org.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2474)
at org.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2450)
at org.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2441)
at org.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2432)
at org.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2423)
at org.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2414)
at org.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2405)
at org.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2372)
at org.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2330)
at org.htmlunit.corejs.javascript.Parser.plainProperty(Parser.java:3661)
at org.htmlunit.corejs.javascript.Parser.objectLiteral(Parser.java:3558)
at org.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3099)
at org.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2721)
at org.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2624)
at org.htmlunit.corejs.javascript.Parser.expExpr(Parser.java:2544)
at org.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2527)
at org.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2513)
at org.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2496)
at org.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2474)
at org.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2450)
at org.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2441)
at org.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2432)
at org.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2423)
at org.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2414)
at org.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2405)
at org.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2372)
at org.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2330)
at org.htmlunit.corejs.javascript.Parser.arrayLiteral(Parser.java:3281)
at org.htmlunit.corejs.javascript.Parser.primaryExpr(Parser.java:3095)
at org.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2721)
at org.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2624)
at org.htmlunit.corejs.javascript.Parser.expExpr(Parser.java:2544)
at org.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2527)
at org.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2513)
at org.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2496)
at org.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2474)
at org.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2450)
at org.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2441)
at org.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2432)
at org.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2423)
at org.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2414)
at org.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2405)
at org.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2372)
at org.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2330)
at org.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2692)
at org.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2836)
at org.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2756)
at org.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2624)
at org.htmlunit.corejs.javascript.Parser.expExpr(Parser.java:2544)
at org.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2527)
at org.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2513)
at org.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2496)
at org.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2474)
at org.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2450)
at org.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2441)
at org.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2432)
at org.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2423)
at org.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2414)
at org.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2405)
at org.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2372)
at org.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2330)
at org.htmlunit.corejs.javascript.Parser.expr(Parser.java:2309)
at org.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1255)
at org.htmlunit.corejs.javascript.Parser.statement(Parser.java:1110)
at org.htmlunit.corejs.javascript.Parser.parse(Parser.java:631)
at org.htmlunit.corejs.javascript.Parser.parse(Parser.java:561)
at org.htmlunit.corejs.javascript.Context.parse(Context.java:2540)
at org.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2471)
at org.htmlunit.corejs.javascript.Context.compileString(Context.java:1439)
at org.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:218)
at org.htmlunit.corejs.javascript.Context.compileString(Context.java:1427)
at org.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:824)
at org.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:986)
... 24 more

Vorherrschende Sprache
JavaScript
Sterne
952
Forks
183
Ø Merge
2 T. 1 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus HtmlUnit/htmlunit

Alle Issues in HtmlUnit/htmlunit

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.