Exception occurs with some code
See original GitHub issueC:\npmprefix\node_modules\lebab\lib\scope\function-hoister.js:106
_this2.functionScope.register(node.id.name, new _scopeVariable2['default'](node));
^
TypeError: Cannot read property 'name' of null
at Controller.enter (C:\npmprefix\node_modules\lebab\lib\scope\function-hoister.js:106:50)
at Controller.__execute (C:\npmprefix\node_modules\lebab\node_modules\estraverse\estraverse.js:397:31)
at Controller.traverse (C:\npmprefix\node_modules\lebab\node_modules\estraverse\estraverse.js:501:28)
at Object.traverse (C:\npmprefix\node_modules\lebab\node_modules\estraverse\estraverse.js:713:27)
at Object.traverse (C:\npmprefix\node_modules\lebab\lib\traverser.js:42:36)
at FunctionHoister.hoistVariables (C:\npmprefix\node_modules\lebab\lib\scope\function-hoister.js:100:30)
at FunctionHoister.hoist (C:\npmprefix\node_modules\lebab\lib\scope\function-hoister.js:79:12)
at hoistFunction (C:\npmprefix\node_modules\lebab\lib\transform\let.js:144:53)
at enterProgram (C:\npmprefix\node_modules\lebab\lib\transform\let.js:117:3)
at Controller.enter (C:\npmprefix\node_modules\lebab\lib\transform\let.js:60:9)
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
What is Exception Handling? - SearchSoftwareQuality
Exceptions occur for numerous reasons, including invalid user input, code errors, device failure, the loss of a network connection, insufficient memory to run ......
Read more >What Is an Exception?
Definition: An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions during the...
Read more >Run some code if any exception occur and to a specific ...
1 Answer 1 · Ok. So if I get except KeyError, NameError: block, how to check which one occur? – avalanchy · In...
Read more >What's an Exception and Why Do I Care? - UPV
Definition: An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions. Many different...
Read more >What is exception handler? | Definition from TechTarget
An exception handler is code that stipulates what a program will do when an anomalous event disrupts the normal flow of that program's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah… thanks. Now I get it.
Should be pretty easy to fix.
I patched it locally, so I don’t need a fix, but here is a repro