@@ -23,19 +23,19 @@ inline WrappableBase* InvokeFactory(
2323 Arguments* args,
2424 const base::Callback<WrappableBase*()>& callback) {
2525 return callback.Run ();
26- };
26+ }
2727
28- template <typename P1>
28+ template <typename P1>
2929inline WrappableBase* InvokeFactory (
3030 Arguments* args,
3131 const base::Callback<WrappableBase*(P1)>& callback) {
3232 typename CallbackParamTraits<P1>::LocalType a1;
3333 if (!GetNextArgument (args, 0 , true , &a1))
3434 return nullptr ;
3535 return callback.Run (a1);
36- };
36+ }
3737
38- template <typename P1, typename P2>
38+ template <typename P1, typename P2>
3939inline WrappableBase* InvokeFactory (
4040 Arguments* args,
4141 const base::Callback<WrappableBase*(P1, P2)>& callback) {
@@ -45,9 +45,9 @@ inline WrappableBase* InvokeFactory(
4545 !GetNextArgument (args, 0 , false , &a2))
4646 return nullptr ;
4747 return callback.Run (a1, a2);
48- };
48+ }
4949
50- template <typename P1, typename P2, typename P3>
50+ template <typename P1, typename P2, typename P3>
5151inline WrappableBase* InvokeFactory (
5252 Arguments* args,
5353 const base::Callback<WrappableBase*(P1, P2, P3)>& callback) {
@@ -59,9 +59,9 @@ inline WrappableBase* InvokeFactory(
5959 !GetNextArgument (args, 0 , false , &a3))
6060 return nullptr ;
6161 return callback.Run (a1, a2, a3);
62- };
62+ }
6363
64- template <typename P1, typename P2, typename P3, typename P4>
64+ template <typename P1, typename P2, typename P3, typename P4>
6565inline WrappableBase* InvokeFactory (
6666 Arguments* args,
6767 const base::Callback<WrappableBase*(P1, P2, P3, P4)>& callback) {
@@ -75,9 +75,9 @@ inline WrappableBase* InvokeFactory(
7575 !GetNextArgument (args, 0 , false , &a4))
7676 return nullptr ;
7777 return callback.Run (a1, a2, a3, a4);
78- };
78+ }
7979
80- template <typename P1, typename P2, typename P3, typename P4, typename P5>
80+ template <typename P1, typename P2, typename P3, typename P4, typename P5>
8181inline WrappableBase* InvokeFactory (
8282 Arguments* args,
8383 const base::Callback<WrappableBase*(P1, P2, P3, P4, P5)>& callback) {
@@ -93,10 +93,14 @@ inline WrappableBase* InvokeFactory(
9393 !GetNextArgument (args, 0 , false , &a5))
9494 return nullptr ;
9595 return callback.Run (a1, a2, a3, a4, a5);
96- };
96+ }
9797
98- template <typename P1, typename P2, typename P3, typename P4, typename P5,
99- typename P6>
98+ template <typename P1,
99+ typename P2,
100+ typename P3,
101+ typename P4,
102+ typename P5,
103+ typename P6>
100104inline WrappableBase* InvokeFactory (
101105 Arguments* args,
102106 const base::Callback<WrappableBase*(P1, P2, P3, P4, P5, P6)>& callback) {
@@ -114,11 +118,12 @@ inline WrappableBase* InvokeFactory(
114118 !GetNextArgument (args, 0 , false , &a6))
115119 return nullptr ;
116120 return callback.Run (a1, a2, a3, a4, a5, a6);
117- };
121+ }
118122
119- template <typename Sig>
123+ template <typename Sig>
120124void InvokeNew (const base::Callback<Sig>& factory,
121- v8::Isolate* isolate, Arguments* args) {
125+ v8::Isolate* isolate,
126+ Arguments* args) {
122127 if (!args->IsConstructCall ()) {
123128 args->ThrowError (" Requires constructor call" );
124129 return ;
0 commit comments