From b1f7cfa9da1f53158a4992428b40a780c9617632 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 30 Oct 2014 21:31:53 +0800 Subject: [PATCH] Don't throw error in Constructor --- native_mate/constructor.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/native_mate/constructor.h b/native_mate/constructor.h index f44238ed07..4dce532098 100644 --- a/native_mate/constructor.h +++ b/native_mate/constructor.h @@ -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(); }