Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Glue for Functions with mozilla::Range Parameters #434

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Redfire75369
Copy link
Contributor

@Redfire75369 Redfire75369 commented Dec 2, 2023

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.

@sagudev
Copy link
Member

sagudev commented Dec 2, 2023

Would it be possible to also add test for Range?

@Redfire75369
Copy link
Contributor Author

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.

@Redfire75369 Redfire75369 changed the title Modified Range::new to take Raw Pointers Added Glue for Functions with mozilla::Range Parameters Dec 8, 2023
mozjs/src/jsglue.cpp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants