You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong exception reported for throw with toString returning symbol #4912
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)
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.
Activity
bnoordhuis commentedon Jan 27, 2016
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.
cjihrig commentedon Jan 27, 2016
Agreed. This seems like a non-issue.