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

Error when running Nashorn with :optimizations :whitespace #190

Open
nblumoe opened this issue Apr 19, 2019 · 0 comments
Open

Error when running Nashorn with :optimizations :whitespace #190

nblumoe opened this issue Apr 19, 2019 · 0 comments

Comments

@nblumoe
Copy link

nblumoe commented Apr 19, 2019

Nashorn runs with :optimizations :none are prevented and show a useful error message:

Caused by: java.lang.AssertionError: Assert failed: Nashorn doesn't support :optimizations :none

When using :optimizations :whitespace the runner starts but results in the following error. The same setup with :optimizations :simple works though.

 lein doo nashorn once

;; ======================================================================
;; Testing with Nashorn:

Error while loading file: "target/tests.js"
Error: Namespace "foo.mytest" already declared.
At line 17
WARNING: doo's init function was not set or is not a function
Subprocess failed

Maybe the assert producing the first error should also catch the whitespace optimization? Or should Nashorn be able to actually run such a setup?

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

1 participant