Don't throw error in Constructor

This commit is contained in:
Cheng Zhao 2014-10-30 21:31:53 +08:00
parent cc9d222923
commit b1f7cfa9da

View file

@ -154,8 +154,6 @@ class Constructor {
Wrappable* object = internal::InvokeFactory(args, factory);
if (object)
object->Wrap(isolate, args->GetThis());
else
args->ThrowError();
MATE_METHOD_RETURN_UNDEFINED();
}