contextify: handle infinite recursion errors
authorFedor Indutny <fedor.indutny@gmail.com>
Wed, 5 Feb 2014 09:46:00 +0000 (13:46 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Wed, 5 Feb 2014 10:20:02 +0000 (14:20 +0400)
commit5ce458032f33ad19a56c5b9c8c28bde245eb93b7
tree0e91bda647820bb53adc05bdae3dfb016d400329
parentbae545dab78d4b3c5425f119a8b5d7c6f2e9bd2b
contextify: handle infinite recursion errors

Try to be consistent with v0.10 and emit "Maximum call stack size
reached", even if it happens when allocating context or doing other
stuff.

fix #7045
src/node_contextify.cc
test/simple/test-vm-infinite-recursion.js [new file with mode: 0644]