Error during JS execution
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java, javascript
- Lĩnh vực
- backend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 952
- Fork
- 183
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của HtmlUnit/htmlunit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của HtmlUnit/htmlunit
Issue tương tự
-
Energy flow: add an "Other" row so the consumers add up to the consumption totalCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
evcc-io/evcc#35512 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NobiResearch/Ovenbird#148 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
glossyio/traffic-monitor#264 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
balance good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
tobeficv/founders-way#5 ·