mozjs
mozjs copied to clipboard
Added Glue for Functions with `mozilla::Range` Parameters
Small change to #433. slice::as_mut_ptr_range
gives a Range<*mut T>
, which would need to be converted to a reference to be used.
Would it be possible to also add test for Range
?
The errors seem to be caused by a C++ ABI issue, which is annoying, as per usual. The moment the Range<T>
passes to C++, all hell breaks loose and the pointer fields point to nonsense.