servo/rust-mozjs

Add a method to receive a vec of bits and return with SourceText

CYBAI opened this issue · 1 comments

CYBAI commented

In servo/servo#23545, we created a method to receive &[u16] and return SourceText<u16>.

It would be better to have the method inside mozjs so that we can just pass the data and get SourceText via the method from mozjs.

See servo/servo#23545 (comment) and https://github.com/servo/servo/pull/23545/files#diff-3fe97584f564214ec8e7ebbf91747e03R75-R82

CYBAI commented

Fixed in #497