iotjs icon indicating copy to clipboard operation
iotjs copied to clipboard

broken Timers

Open WebReflection opened this issue 11 years ago • 2 comments

By specification, and since about ever in every engine, timers accept extra arguments.

setTimeout(function (str) {
  console.log(str);
}, 1000, "Hello IoT.js!!");

Above code should log Hello IoT.js! ... it prints

uncaughtException: undefined

instead.

Please get core functionalities right ;-) thank you!

WebReflection avatar Jul 30 '15 14:07 WebReflection

@WebReflection Thanks for pointing out. It looks like we haven't been visiting timer for long time since initial implementation. I'll take a look at this.

ILyoan avatar Jul 31 '15 02:07 ILyoan

Closing as #157 landed. Feel free to reopen if needed

ILyoan avatar Aug 03 '15 01:08 ILyoan