TimeRanges start and stop have wrong type (Int instead of Double)
Sciss opened this issue · 3 comments
Sciss commented
Here:
- https://github.com/scala-js/scala-js-dom/blob/master/src/main/scala/org/scalajs/dom/raw/lib.scala#L5081
- https://github.com/scala-js/scala-js-dom/blob/master/src/main/scala/org/scalajs/dom/raw/lib.scala#L5088
I am getting runtime errors:
Uncaught scala.scalajs.runtime.UndefinedBehaviorError: An undefined behavior was detected: 67.57 is not an instance of java.lang.Integer
I think these values are measured in seconds that have been buffered.
sjrd commented
PR welcome :-)
Sciss commented
Yes, sorry, next time! Thanks for your work.
mseddon commented
Oh, sorry, didn't mean to steal that from you- I tend to fix these up as I find them :) new contributors always welcome!