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
TS2448 used before its declaration error for recursive function #22975
It will be an error. If you try the original sample in Chrome, you get a TDZ error from the const. If you run it through babel first you get an error that you can't call undefined. (Babel generates a var cacheMerged with the default settings on the REPL, at least.)
Activity
mhegazy commentedon Mar 29, 2018
that is a bug alright. but i would recommend changing the variable name to avoid the confusion.
mohsen1 commentedon Apr 11, 2018
Nathan Shively-Sanders (@sandersn) Daniel Rosenwasser (@DanielRosenwasser) This is the last item in todo list of migrating Webpack to use TypeScript
webpack/webpack#6862
sandersn commentedon Apr 11, 2018
This error looks correct to me. If you ever run
It will be an error. If you try the original sample in Chrome, you get a TDZ error from the const. If you run it through babel first you get an error that you can't call
undefined. (Babel generates avar cacheMergedwith the default settings on the REPL, at least.)mhegazy commentedon Apr 11, 2018
looking at it again, it is not a compiler bug, it is an actual bug. this code will not execude if the number of arguments is greater than 2.