diff --git a/lib/ClassBuilder.js b/lib/ClassBuilder.js index 71005be..f5f2ec1 100644 --- a/lib/ClassBuilder.js +++ b/lib/ClassBuilder.js @@ -603,7 +603,7 @@ exports.prototype.createConcreteCtor = function( cname, members ) // constructor function to be returned (the name is set to ClassInstance // because some debuggers (e.g. v8) will show the name of this function for // constructor instances rather than invoking the toString() method) - var ClassInstance = function ClassInstance() + function ClassInstance() { if ( !( this instanceof ClassInstance ) ) {