-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[jsscripting] Use application/javascript
as MIME type
#14096
Conversation
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
application/javascript
as MIME type
@jlaur I've added a unit test that calls the |
Please make sure that |
I was not sure if we want to keep that backward compatiblity (FYI: #14093 upgrades to ECMA2022), I had it in but removed it then. I'll just revert the removal. FYI, I have a UI PR that will add a menu to change the script type: openhab/openhab-webui#1601. |
@J-N-K Can you help me with the failing unit test? It's failing before it even starts ... |
I guess it's the same as here, but I have no idea why it failes in |
The test is nearly the same as for JS Scripting (Nashorn) and there it works. As no one has an idea why it fails, I’ll remove it. |
It‘s probably related to something on the classpath. |
This reverts commit eadd3de. Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
4e459ad
to
c9adf57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Reference openhab/openhab-addons#14013. Reference openhab/openhab-addons#14096. Signed-off-by: Florian Hotze <[email protected]>
Reference openhab/openhab-addons#14013. Reference openhab/openhab-addons#14096. Signed-off-by: Florian Hotze <[email protected]>
Reference openhab/openhab-addons#14013. Reference openhab/openhab-addons#14096. Signed-off-by: Florian Hotze <[email protected]> Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Reference openhab/openhab-addons#14013. Reference openhab/openhab-addons#14096. Signed-off-by: Florian Hotze <[email protected]> Signed-off-by: Florian Hotze <[email protected]> Signed-off-by: Boris Krivonog <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
With openHAB on the horizon and the NashornJS engine available as an addon with MIME type
application/javascript;version=ECMAScript-5.1
, GraalJS should take over theapplication/javascript
MIME type.