Skip to content
Permalink
Browse files

fix extra-semi warnings

  • Loading branch information...
nornagon authored and MarshallOfSound committed Feb 27, 2019
1 parent 8043e2e commit 69bf9aa605000f4e366f2e32ace243a141c3bf22
@@ -206,4 +206,4 @@ void Initialize(v8::Local<v8::Object> exports,

} // namespace

NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_debugger, Initialize);
NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_debugger, Initialize)
@@ -232,4 +232,4 @@ void Initialize(v8::Local<v8::Object> exports,

} // namespace

NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_desktop_capturer, Initialize);
NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_desktop_capturer, Initialize)
@@ -251,4 +251,4 @@ void Initialize(v8::Local<v8::Object> exports,

} // namespace

NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_download_item, Initialize);
NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_download_item, Initialize)
@@ -151,4 +151,4 @@ void Initialize(v8::Local<v8::Object> exports,

} // namespace

NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_power_save_blocker, Initialize);
NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_power_save_blocker, Initialize)
@@ -130,4 +130,4 @@ void Initialize(v8::Local<v8::Object> exports,

} // namespace

NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_system_preferences, Initialize);
NODE_LINKED_MODULE_CONTEXT_AWARE(atom_browser_system_preferences, Initialize)
@@ -23,19 +23,19 @@ inline WrappableBase* InvokeFactory(
Arguments* args,
const base::Callback<WrappableBase*()>& callback) {
return callback.Run();
};
}

template<typename P1>
template <typename P1>
inline WrappableBase* InvokeFactory(
Arguments* args,
const base::Callback<WrappableBase*(P1)>& callback) {
typename CallbackParamTraits<P1>::LocalType a1;
if (!GetNextArgument(args, 0, true, &a1))
return nullptr;
return callback.Run(a1);
};
}

template<typename P1, typename P2>
template <typename P1, typename P2>
inline WrappableBase* InvokeFactory(
Arguments* args,
const base::Callback<WrappableBase*(P1, P2)>& callback) {
@@ -45,9 +45,9 @@ inline WrappableBase* InvokeFactory(
!GetNextArgument(args, 0, false, &a2))
return nullptr;
return callback.Run(a1, a2);
};
}

template<typename P1, typename P2, typename P3>
template <typename P1, typename P2, typename P3>
inline WrappableBase* InvokeFactory(
Arguments* args,
const base::Callback<WrappableBase*(P1, P2, P3)>& callback) {
@@ -59,9 +59,9 @@ inline WrappableBase* InvokeFactory(
!GetNextArgument(args, 0, false, &a3))
return nullptr;
return callback.Run(a1, a2, a3);
};
}

template<typename P1, typename P2, typename P3, typename P4>
template <typename P1, typename P2, typename P3, typename P4>
inline WrappableBase* InvokeFactory(
Arguments* args,
const base::Callback<WrappableBase*(P1, P2, P3, P4)>& callback) {
@@ -75,9 +75,9 @@ inline WrappableBase* InvokeFactory(
!GetNextArgument(args, 0, false, &a4))
return nullptr;
return callback.Run(a1, a2, a3, a4);
};
}

template<typename P1, typename P2, typename P3, typename P4, typename P5>
template <typename P1, typename P2, typename P3, typename P4, typename P5>
inline WrappableBase* InvokeFactory(
Arguments* args,
const base::Callback<WrappableBase*(P1, P2, P3, P4, P5)>& callback) {
@@ -93,10 +93,14 @@ inline WrappableBase* InvokeFactory(
!GetNextArgument(args, 0, false, &a5))
return nullptr;
return callback.Run(a1, a2, a3, a4, a5);
};
}

template<typename P1, typename P2, typename P3, typename P4, typename P5,
typename P6>
template <typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6>
inline WrappableBase* InvokeFactory(
Arguments* args,
const base::Callback<WrappableBase*(P1, P2, P3, P4, P5, P6)>& callback) {
@@ -114,11 +118,12 @@ inline WrappableBase* InvokeFactory(
!GetNextArgument(args, 0, false, &a6))
return nullptr;
return callback.Run(a1, a2, a3, a4, a5, a6);
};
}

template<typename Sig>
template <typename Sig>
void InvokeNew(const base::Callback<Sig>& factory,
v8::Isolate* isolate, Arguments* args) {
v8::Isolate* isolate,
Arguments* args) {
if (!args->IsConstructCall()) {
args->ThrowError("Requires constructor call");
return;

0 comments on commit 69bf9aa

Please sign in to comment.
You can’t perform that action at this time.