Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gausie
Copy link
Contributor

@gausie gausie commented Jun 10, 2021

To get this running on the current version of Rhino I needed to:

  • Change GLOBAL in tests.js to equal global
  • Replace console.log with print
  • Return false for "es.string.search" because the code causes an NPE

These (in particular number 3) are good little tasks to fix upstream in Rhino though

Then it ran no problem with java -jar rhino.jar -version 200 -require ./node-runner.js

@zloirock
Copy link
Owner

Thanks -)

@zloirock
Copy link
Owner

zloirock commented Jun 10, 2021

The question: what means flag here http://mozilla.github.io/rhino/compat/engines.html?

(never mind - found the answer)

@gausie
Copy link
Contributor Author

gausie commented Jun 10, 2021

It means running it with the es6 flag - its misleading because its not a pre-release flag, its a flag that the docs recommend everyone set when working with Rhino.

Excellent!

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

Successfully merging this pull request may close these issues.

2 participants