YaroslavGaponov / node-jvm

java virtual machine in pure node.js
2.11k stars 178 forks source link

fibonacci.js example Range Error: Maximum call stack size exceeeded #5

Closed a10y closed 10 years ago

a10y commented 10 years ago

➜ fibonacci git:(master) ✗ ./fibonacci.js DEBUG: JVM: loading ./Main.class ... DEBUG: Not support opcodes: putstatic,athrow,checkcast,monitorenter,monitorexit,wide Fibonacci from 1 to 10: 1: 1 2: 1 3: 2 4: 3 5: 5 6: 8 (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. ... RangeError: Maximum call stack size exceeded

I get this same error when passing any int greater than 6 to Main.class in fibonacci.js. I'm using node v0.10.21.

YaroslavGaponov commented 10 years ago

I'm using node v0.8.6 (OS X). I will update node and then fix.

YaroslavGaponov commented 10 years ago

seems fixed

a10y commented 10 years ago

Agree, work perfectly on my machine!