You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be a regression from #3051. When attempting to open some of my scripts in the script editor, OH crashes (tab must be killed). The console reports
app.a6445ca….js:2 TypeError: Cannot read properties of undefined (reading 'documentationLink')
This only impacts JSscripting scripts, I have not noticed with other languages. In fact, it only impacts older JSscripting scripts. It appears that the new type for JSScripting is just application/javascript, however, many of my scripts are old enough to have started as Nashorn and be upgraded over time. Those scripts that were upgraded from Nashorn have a type of application/javascript;version=ECMAScript-2021. This is not recognized by the new documentation link system.
This isn't a difficult fix, but there are a couple of different ways to do it so I thought a discussion might be worthwhile. Obviously, application/javascript;version=ECMAScript-2021 can just be added to automation-languages.js. My question is whether it makes more sense to just add this as one of the options, or to intercept these older types and automatically update the type to the newer version.
Anyone have an opinion on this?
The text was updated successfully, but these errors were encountered:
This appears to be a regression from #3051. When attempting to open some of my scripts in the script editor, OH crashes (tab must be killed). The console reports
This only impacts JSscripting scripts, I have not noticed with other languages. In fact, it only impacts older JSscripting scripts. It appears that the new type for JSScripting is just
application/javascript
, however, many of my scripts are old enough to have started as Nashorn and be upgraded over time. Those scripts that were upgraded from Nashorn have a type ofapplication/javascript;version=ECMAScript-2021
. This is not recognized by the new documentation link system.This isn't a difficult fix, but there are a couple of different ways to do it so I thought a discussion might be worthwhile. Obviously,
application/javascript;version=ECMAScript-2021
can just be added toautomation-languages.js
. My question is whether it makes more sense to just add this as one of the options, or to intercept these older types and automatically update the type to the newer version.Anyone have an opinion on this?
The text was updated successfully, but these errors were encountered: