Espruino/tests/test_settimeout_noarg.js
Standa Opichal 5fc0fe7949 No timeout argument setTimeout() calls work
It behaves as if zero (0) was passed in. Compliant to the spec: see
https://www.w3.org/TR/2011/WD-html5-20110525/timers.html#get-the-timeout
2017-06-23 22:46:16 +02:00

3 lines
33 B
JavaScript

result=0
setTimeout("result=1");