Merge pull request #30 from electron/chromium-66-upgrade

Chromium 66 Updates
This commit is contained in:
Samuel Attard 2018-06-21 22:35:49 +10:00 committed by GitHub
commit e15ffd96eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

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