servo / rust-mozjs

DEPRECATED - moved to servo/mozjs instead.
Mozilla Public License 2.0
293 stars 122 forks source link

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

Closed CYBAI closed 4 years ago

CYBAI commented 4 years ago

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 https://github.com/servo/servo/pull/23545#discussion_r348290379 and https://github.com/servo/servo/pull/23545/files#diff-3fe97584f564214ec8e7ebbf91747e03R75-R82

CYBAI commented 4 years ago

Fixed in #497