Skip to content

exception handling crash #4079

Description

@programmerjake

node 5.1.0 crashes on windows 7 when running:
node -e "throw {toString:function(){throw this;}}"

Activity

  1. Fishrock123 commented on Dec 1, 2015

    @Fishrock123
    Contributor

    Smells like a v8 issue.

  2. programmerjake commented on Dec 1, 2015

    @programmerjake
    Author

    google chrome doesn't exhibit this issue

  3. evanlucas commented on Dec 1, 2015

    @evanlucas
    Contributor

    what behavior does chrome exhibit?

    On v4+:

    $ node -e "throw {toString: function() { throw this; }}"
    
    [eval]:1
    throw {toString: function() { throw this; }}
    ^
    Ƕ?b?
    

    0.10 aborts

  4. targos commented on Dec 1, 2015

    @targos
    Member

    in Chrome's console:

    image

  5. mscdex commented on Dec 1, 2015

    @mscdex
    Contributor

    On Linux with node v5.1.0 I just get:

    [eval]:1
    throw {toString:function(){throw this;}}
    ^
    
    

    No weird/junk characters below the caret.

  6. alexlamsl commented on Dec 1, 2015

    @alexlamsl

    Node 5.1.0, Windows Server 2012 R2:

    C:\>node -e "throw {toString:function(){throw this;}}"
    
    [eval]:1
    throw {toString:function(){throw this;}}
    ^
     Er?O?☻
    
    
  7. alexlamsl commented on Dec 1, 2015

    @alexlamsl
    C:\>node
    > throw {toString:function(){throw this;}}
    
    repl:1
    throw {toString:function(){throw this;}}
                               ^
     ??b=~
    
  8. added a commit that references this issue on Dec 29, 2015
  9. added a commit that references this issue on Jan 19, 2016
  10. added a commit that references this issue on Apr 2, 2016
  11. added a commit that references this issue on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions