Date() in native

Hello everyone,

I have a simple request: How can I use the Date() function in native with Cocos2D-JS ? I am testing in Android and the app crashes.

After some research, it seems to be related to limitations in the Spidermonkey engine. The solutions I have found so far involve using C++, and I making a JS bind seems too much.

Is there any official way to use the date object?

I have no problem using the javascript Date() function in js file.

var newDate = new Date();

But do you mean you want to use the Date() function in .cpp file?

If so, may be you can try have a look on this see if it works for you.