Hi everyone, I jumped into a weird problem that has different behavior in Chrome/Node (V8) and Firefox (SpiderMonkey).
I'm not sure if this is a known issue that I missed, or it's a new problem that need to be reported/fixed. The scenario is, when we try to define a variable in REPL (Chrome Dev Tool or Node REPL) that failed first hand: let foo = something.does.not.exist; // this is undefined V8 will response as: VM12688:1 Uncaught ReferenceError: foo is not defined at <anonymous>:1:14 >From now on, everytime you try to redeclare that variable, or reassign it with a new value, it will fail, the variable is no longer usable. let foo = "Something that works"; // or foo = "Bar"; Uncaught ReferenceError: foo is not defined at <anonymous>:1:8 And the same error when you're trying to read that variable. With the same scenario, there's no error in Firefox. So I assume this is the execution problem in V8. Attached screenshots is the execution on Chrome, Node and Firefox. Google Chrome: <https://lh3.googleusercontent.com/-8ow43dVwN8A/WwRrHUE1ORI/AAAAAAAAT9Q/q4lDu4YJM-wY0UG6DycRzXMcYKfDwUjmwCLcBGAs/s1600/Screen%2BShot%2B2018-05-22%2Bat%2B11.43.29%2BAM.png> Node REPL: <https://lh3.googleusercontent.com/-zT9hVlSCRrk/WwRrKYt2y9I/AAAAAAAAT9U/s84VVKLPfjcRJX6OP-0iLTGFaluFtsA6gCLcBGAs/s1600/Screen%2BShot%2B2018-05-22%2Bat%2B11.45.40%2BAM.png> Firefox: <https://lh3.googleusercontent.com/-bs_cL-9wEcI/WwRrNNndi6I/AAAAAAAAT9Y/JbQSMBWTCU8WPLZrKg4TBw9W2h6hagcJACLcBGAs/s1600/Screen%2BShot%2B2018-05-22%2Bat%2B11.46.59%2BAM.png> -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.