tnhu / jsface

Small, fast, elegant, powerful, and cross platform JavaScript OOP library. Support main(), singleton, super call, private, mixins, plugins, AOP and more.
MIT License
301 stars 46 forks source link

Fixed array creation bug on Nashorn #21

Closed pvginkel closed 9 years ago

pvginkel commented 10 years ago

Nashorn doesn't like the way the parent variable is coerced to an array. Fixed by calling the Array constructor.

tnhu commented 9 years ago

Sure, I can read Java, no worries.

jjs is Java shell tool to try Nashorn engine interactively (http://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/shell.html)