BYVoid / continuation

JavaScript asynchronous Continuation-Passing Style transformation (deprecated).
Other
388 stars 42 forks source link

Incorrect textual representation of time #42

Open jwluiten opened 6 years ago

jwluiten commented 6 years ago

https://github.com/BYVoid/continuation/blob/73b95521b10211fcc4e64a42d5f60d33c20dc6cb/examples/clock/clock.js#L19

var text = 
  ((h >= 10) ? h : "0" + h) + ":" +
  ((h >= 10) ? m : "0" + m) + ":" +
  ((h >= 10) ? s : "0" + s);

should be:

var text = 
  ((h >= 10) ? h : "0" + h) + ":" +
  ((m >= 10) ? m : "0" + m) + ":" +
  ((s >= 10) ? s : "0" + s);