avoid usage of Function ctor for creating derived ctors
avoid usage of Function ctor for creating derived ctors

It leads to runtime errors in the case of error names which is not valid
JavaScript identifiers.

nodules/terror