You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "jtulach (via GitHub)" <gi...@apache.org> on 2026/05/19 06:23:45 UTC
[PR] Provide `ScriptEngine.FILENAME` for `@JavaScriptResource` [netbeans-html4j]
jtulach opened a new pull request, #59:
URL: https://github.com/apache/netbeans-html4j/pull/59
- Debugging of `@JavaScriptResource` when `ScriptPresenter` is used isn't easy.
- when the JavaScript code is `ScriptEngine.eval`uated
- it doesn't have proper file associated
- this PR fixes that by _tunneling_ `URL` of the resource to `ScriptPresenter`
- and using it as `ScriptEngine.FILENAME`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [PR] Provide `ScriptEngine.FILENAME` for `@JavaScriptResource` [netbeans-html4j]
Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach commented on PR #59:
URL: https://github.com/apache/netbeans-html4j/pull/59#issuecomment-4485091125
- This is the result of debugging the new `ScriptEngineEvalTest` in NetBeans 30:
<img width="1920" height="654" alt="throw.js" src="https://github.com/user-attachments/assets/eca1df0f-2f9a-49c1-a2fa-c9ecb369ef8b" />
- the name of the file is really `yield.js` as is the name of the file on disk
- alas, it is not the source file, but its copy in `target` resources...
- the stack trace rally contains `throws.js:21` as verified by `assertStackContains` in the test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists