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

Segfault when calling JSON.stringify() on HTMLCollection #858

Closed
0b10011 opened this issue Sep 2, 2013 · 5 comments
Closed

Segfault when calling JSON.stringify() on HTMLCollection #858

0b10011 opened this issue Sep 2, 2013 · 5 comments

Comments

@0b10011
Copy link
Contributor

@0b10011 0b10011 commented Sep 2, 2013

Steps to reproduce

  1. Set content of /src/test/html/content/test_prototype.js to:

    JSON.stringify(window.document.getElementsByTagName('script'));
    finish();
    
  2. Run ./servo ../src/test/html/content/test_prototypes.html in terminal

  3. Results in a Segfault

@evilpie
Copy link
Contributor

@evilpie evilpie commented Sep 2, 2013

The servo DOM bindings are missing an implementation of getOwnPropertyNames.

@jdm
Copy link
Member

@jdm jdm commented Sep 3, 2013

Where does JSON.stringify come into the example?

@0b10011
Copy link
Contributor Author

@0b10011 0b10011 commented Sep 3, 2013

@jdm Oops, typed the test case in manually to get it formatted correctly, but typed it wrong. Updated test case. Sorry about that!

@jdm jdm added I-crash labels Apr 18, 2014
@jdm
Copy link
Member

@jdm jdm commented Apr 18, 2014

For future reference: servo/rust-mozjs#33

@jdm
Copy link
Member

@jdm jdm commented Apr 23, 2014

Closing in favour of #2215 which has more details on how to solve it.

@jdm jdm closed this Apr 23, 2014
ChrisParis pushed a commit to ChrisParis/servo that referenced this issue Sep 7, 2014
TTWF Seoul submission: Hitregions members test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.