GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Wrong exception reported for throw with toString returning symbol · Issue #4912 · nodejs/node

Wrong exception reported for throw with toString returning symbol #4912

New issue
Copy link
New issue
Copy link
Closed
Closed
Wrong exception reported for throw with toString returning symbol#4912
Copy link
Labels
v8 engineIssues and PRs related to the V8 dependency.

Description

@programmerjake
programmerjake
opened on Jan 27, 2016
Issue body actions

displaying wrong exception for throwing an object with toString returning a symbol:

> throw {toString:function(){return Symbol.iterator}}
TypeError: Cannot convert a Symbol value to a string
    at Domain.<anonymous> (repl.js:277:43)
    at emitOne (events.js:77:13)
    at Domain.emit (events.js:169:7)
    at REPLServer.defaultEval (repl.js:256:26)
    at bound (domain.js:280:14)
    at REPLServer.runBound [as eval] (domain.js:293:12)
    at REPLServer.<anonymous> (repl.js:412:12)
    at emitOne (events.js:82:20)
    at REPLServer.emit (events.js:169:7)
    at REPLServer.Interface._onLine (readline.js:210:10)

Activity

  1. bnoordhuis commented on Jan 27, 2016

    @bnoordhuis
    bnoordhuis
    on Jan 27, 2016
    Member
    More actions

    That error message originates in V8 (objects.cc to be exact) and is not under our control. That said, I don't see what's wrong with it. ES6 symbols don't coerce to strings.

  2. mscdex
    added
    v8 engineIssues and PRs related to the V8 dependency.
    on Jan 27, 2016
  3. cjihrig commented on Jan 27, 2016

    @cjihrig
    cjihrig
    on Jan 27, 2016
    Contributor
    More actions

    Agreed. This seems like a non-issue.

  4. cjihrig
    closed this as completedon Jan 27, 2016
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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.