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

File name information gets lost #11

Open
salomvary opened this issue Dec 1, 2014 · 1 comment
Open

File name information gets lost #11

salomvary opened this issue Dec 1, 2014 · 1 comment

Comments

@salomvary
Copy link

Resulting in exceptions hard to track down. Like this: ReferenceError: "foobar" is not defined <function> 3.

Using Nashorn's load() instead of new Function might be a solution:

load({name:"script.js", script:"var x = 1 + 1; x;"})
@jwulf
Copy link

jwulf commented Jul 11, 2017

Yeah, this kinda blows. Any way to get better stack traces out of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants