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
TypeError: foo is not a function
at repl:1:27
at sigintHandlersWrap (vm.js:32:31)
at sigintHandlersWrap (vm.js:96:12)
at ContextifyScript.Script.runInContext (vm.js:31:12)
at REPLServer.defaultEval (repl.js:308:29)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:489:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)
Please, clarify, is it possible to produce error without mentioning function name?
The text was updated successfully, but these errors were encountered:
That is quite odd. Chrome does the exact same thing so it's definitely a V8 thing. Whether or not it's a bug or intended behavior we'll have to leave it for the @nodejs/v8 team to figure out. @fhinkel thoughts?
var [ x, y ] = {a: 10}
Uncaught TypeError: undefined is not a function
at <anonymous>:1:1
Oh yes, the error message is not helpful. Something like {a:1} is not iterable would be much better. @dimitriylol thanks for reporting! Do you mind heading over to V8's issue tracker and reporting it there?
Destructuring assignment array on object instance produces a TypeError with an incorrect message.
Code that demonstrates the problem:
Please, clarify, is it possible to produce error without mentioning function name?
The text was updated successfully, but these errors were encountered: