You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As an example, on
window
we havescroll_x()
which returnsResult<f64, JsValue>
whileinner_height()
returnsResult<::wasm_bindgen::JsValue, JsValue>
.Now, according to the docs
inner_height
isI get that everything in JS is really
f64
, but still, sounds like this property could definitely returnf64
instead ofJsValue
.Footnotes
Despite this,
web-sys
exposes aset_inner_height
for some reason. ↩Beta Was this translation helpful? Give feedback.
All reactions