Revert "Address breaking API"

This reverts commit e20cf8687e.
This commit is contained in:
Shelley Vohr 2018-04-15 13:26:35 -04:00
parent 3edb1eed8d
commit a10564c3b1
No known key found for this signature in database
GPG key ID: F13993A75599653C
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ MATE_METHOD_RETURN_TYPE InvokeNew(const base::Callback<Sig>& factory,
WrappableBase* object; WrappableBase* object;
{ {
// Don't continue if the constructor throws an exception. // Don't continue if the constructor throws an exception.
v8::TryCatch try_catch(isolate); v8::TryCatch try_catch;
object = internal::InvokeFactory(args, factory); object = internal::InvokeFactory(args, factory);
if (try_catch.HasCaught()) { if (try_catch.HasCaught()) {
try_catch.ReThrow(); try_catch.ReThrow();

View file

@ -69,7 +69,7 @@ class ObjectTemplateBuilder {
public: public:
explicit ObjectTemplateBuilder( explicit ObjectTemplateBuilder(
v8::Isolate* isolate, v8::Isolate* isolate,
v8::Local<v8::ObjectTemplate> templ); v8::Local<v8::ObjectTemplate> templ = v8::ObjectTemplate::New());
~ObjectTemplateBuilder(); ~ObjectTemplateBuilder();
// It's against Google C++ style to return a non-const ref, but we take some // It's against Google C++ style to return a non-const ref, but we take some