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

Avoid passing null for the string pointer to JS_EvaluateUCScript. #91

Merged
merged 1 commit into from Jul 13, 2014

Conversation

@Ms2ger
Copy link
Collaborator

Ms2ger commented Jul 13, 2014

For empty Vecs, Rust doesn't allocate a backing storage and instead sets the
pointer to null. However, TokenStream::TokenBuf uses null as a poison value,
leading to assertion failures when passing in null into the JS parser.

For empty Vecs, Rust doesn't allocate a backing storage and instead sets the
pointer to null. However, TokenStream::TokenBuf uses null as a poison value,
leading to assertion failures when passing in null into the JS parser.
jdm added a commit that referenced this pull request Jul 13, 2014
Avoid passing null for the string pointer to JS_EvaluateUCScript.
@jdm jdm merged commit 34a3bc6 into servo:master Jul 13, 2014
@Ms2ger Ms2ger deleted the Ms2ger:evaluate_script branch Jul 13, 2014
mmatyas pushed a commit to mmatyas/rust-mozjs that referenced this pull request Jul 30, 2015
tschneidereit pushed a commit to tschneidereit/rust-mozjs that referenced this pull request Aug 26, 2017
Small update to upgrading instructions

r? @Ms2ger

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/91)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.