pivotal/jasmine — Issue #180: setTimeout, setInterval, clearTimeout, clearInterval functions does not work with JavaScriptCore framework in iPhone
Author: shahdhiren
Created: 2012-01-23 05:23:57+00:00
State: open

I have integrated Jasmine with iPhone project. I am running Jasmine using JavaScriptCore framework for iPhone. But JavaScriptCore is unable to interpret setTimeout and all that function.

I have statically defined those as below

this.setTimeout = function() {};
this.clearTimeout = function() {};
this.setInterval = function() {};
this.clearInterval = function() {};

I found that these functions are not part of JavaScriptCore. What could be solution to this...?? Is there any other alternative to these function??