Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identifier is a reserved word: class (xxx/static/js/cache-h5-dcloudio.js#1) #579

Open
Den-Jun opened this issue Apr 7, 2023 · 2 comments
Labels
js-engine Issues related to the js engine

Comments

@Den-Jun
Copy link

Den-Jun commented Apr 7, 2023

Hi, @rbri hello. I am having trouble using it.
ERROR o.a.c.l.i.Jdk14Logger:log Error during JavaScript execution org.htmlunit.ScriptException: identifier is a reserved word: class (https://XXX/static/js/cache-h5-dcloudio.js#1) at org.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:989) at org.htmlunit.corejs.javascript.Context.call(Context.java:590) at org.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:484) at org.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:349)
version:
<dependency> <groupId>org.htmlunit</groupId> <artifactId>htmlunit</artifactId> <version>3.0.0</version> </dependency>
The 'cache-h5-dcloudio.js' is a compressed file used for deployment in the front-end. We have tested that if the code is not compressed during deployment, it will work normally.
We felt very strange about it.

The front-end compression component is "vue-cli-plugin-uni", with a version of 2.0.2-3070920230324001. Then we rolled back the version of the component to "2.0.0-27920200618002", and everything was normal.

Thank you.

@sengsational
Copy link

This might be similar to #480

@rbri
Copy link
Member

rbri commented Mar 27, 2024

see #755

@rbri rbri added the js-engine Issues related to the js engine label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js-engine Issues related to the js engine
Projects
None yet
Development

No branches or pull requests

3 participants