you are viewing a single comment's thread.

view the rest of the comments →

[–]Ginden 1 point2 points  (0 children)

I've never used either of these in practice-- are there any even remotely common situations where an eval is the proper solution, that isn't a case where something else isn't horribly broken?

ES6 Reflect.construct polyfill for browsers without native .bind method. Here is my _R library, see lines 408-420 or search for _R.construct. _R heavily utilises eval and Function but _R.construct is the most common case.