JS_SetNativeStackQuota(JSRuntime *cx, size_t stackSize);
A good size is 500000.
Just checked this, it was fixed in cocos2d-ios:
https://github.com/zynga/jsbindings/blob/master/src/manual/jsb_core.mm#L348
You might want to do the same in cocos2d-x jsbindings.
Rolando
--
You received this message because you are subscribed to the Google Groups "cocos2d JS development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocos2d-js-dev...@googlegroups.com.
To post to this group, send email to cocos2d-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
this->rt_ = JS_NewRuntime(10 * 1024 * 1024, JS_NO_HELPER_THREADS);
size_t stack = 500000;
JS_SetNativeStackQuota(this->rt_, stack);
this->cx_ = JS_NewContext(rt_, 10240);