mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
6a7b47964f
It's a little unfortunate that we need both ${jsvalHandle} and ${jsvalRef}, but the only other option is to consistently have a MutableHandle in this code. If the thing we have to work with is a Rooted, that means doing JS::MutableHandle<JS::Value>(&myRooted) as the thing to substitute for ${jsvalHandle}. Just using "&myRooted" doesn't work, because things like "&myRooted.set()" or "&myRooted.address()" fail, even if parenthesized as "(&myRooted).set()", because &myRooted is actually a Rooted*, not a MutableHandle. We could go the JS::MutableHandle<JS::Value>(&myRooted) route if desired; it would primarily uglify dictionary and sequence to-js conversions. With the setup in this patch, ideally it looks pretty idiomatic except for the use of .set() instead of operator= on Rooted. |
||
---|---|---|
.. | ||
analysis | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |