Created
April 2, 2014 22:52
-
-
Save talios/9944948 to your computer and use it in GitHub Desktop.
Nashorn returns a different type for array lengths :(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/jrunscript | |
nashorn> [1,2,3].length | |
3 | |
$ jrunscript | |
js> [1,2,3].length | |
3.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment