This article shows a better way to copy functions! So you read the previous article? Oops!
Meouzer
The previous article is a good introduction to context evaluation factories and evaluators. It was all so simple, but now it gets more complicated. Good luck! We at the consortium hope you can now figure out the code below.
Full code is at evaluators.js, which has no dependencies.
We show the most powerful way to copy functions. Not only vars but constants and lets can be placed into the evaluator's context, which are seen by all the copied functions. This comes close to the way that functions and getter/setters are copied when we get to copying class instances.