@@ -112,15 +112,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
112112 status = napi_typeof ( env , xre , & xretype );
113113 assert ( status == napi_ok );
114114 if ( xretype != napi_number ) {
115- status = napi_throw_type_error ( env , NULL , "invalid argument. First argument must have a real component which is a number." );
115+ status = napi_throw_type_error ( env , NULL , "invalid argument. Second argument must have a real component which is a number." );
116116 assert ( status == napi_ok );
117117 return NULL ;
118118 }
119119
120120 status = napi_has_named_property ( env , argv [ 1 ], "im" , & hprop );
121121 assert ( status == napi_ok );
122122 if ( !hprop ) {
123- status = napi_throw_type_error ( env , NULL , "invalid argument. First argument must have an imaginary component." );
123+ status = napi_throw_type_error ( env , NULL , "invalid argument. Second argument must have an imaginary component." );
124124 assert ( status == napi_ok );
125125 return NULL ;
126126 }
@@ -133,15 +133,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
133133 status = napi_typeof ( env , xim , & ximtype );
134134 assert ( status == napi_ok );
135135 if ( ximtype != napi_number ) {
136- status = napi_throw_type_error ( env , NULL , "invalid argument. First argument must have an imaginary component which a number." );
136+ status = napi_throw_type_error ( env , NULL , "invalid argument. Second argument must have an imaginary component which is a number." );
137137 assert ( status == napi_ok );
138138 return NULL ;
139139 }
140140
141141 status = napi_has_named_property ( env , argv [ 2 ], "re" , & hprop );
142142 assert ( status == napi_ok );
143143 if ( !hprop ) {
144- status = napi_throw_type_error ( env , NULL , "invalid argument. Second argument must have a real component." );
144+ status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have a real component." );
145145 assert ( status == napi_ok );
146146 return NULL ;
147147 }
@@ -154,15 +154,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
154154 status = napi_typeof ( env , yre , & yretype );
155155 assert ( status == napi_ok );
156156 if ( yretype != napi_number ) {
157- status = napi_throw_type_error ( env , NULL , "invalid argument. Second argument must have a real component which is a number." );
157+ status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have a real component which is a number." );
158158 assert ( status == napi_ok );
159159 return NULL ;
160160 }
161161
162162 status = napi_has_named_property ( env , argv [ 2 ], "im" , & hprop );
163163 assert ( status == napi_ok );
164164 if ( !hprop ) {
165- status = napi_throw_type_error ( env , NULL , "invalid argument. Second argument must have an imaginary component." );
165+ status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have an imaginary component." );
166166 assert ( status == napi_ok );
167167 return NULL ;
168168 }
@@ -175,15 +175,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
175175 status = napi_typeof ( env , yim , & yimtype );
176176 assert ( status == napi_ok );
177177 if ( yimtype != napi_number ) {
178- status = napi_throw_type_error ( env , NULL , "invalid argument. Second argument must have an imaginary component which a number." );
178+ status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have an imaginary component which is a number." );
179179 assert ( status == napi_ok );
180180 return NULL ;
181181 }
182182
183183 status = napi_has_named_property ( env , argv [ 3 ], "re" , & hprop );
184184 assert ( status == napi_ok );
185185 if ( !hprop ) {
186- status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have a real component." );
186+ status = napi_throw_type_error ( env , NULL , "invalid argument. Fourth argument must have a real component." );
187187 assert ( status == napi_ok );
188188 return NULL ;
189189 }
@@ -196,15 +196,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
196196 status = napi_typeof ( env , zre , & zretype );
197197 assert ( status == napi_ok );
198198 if ( zretype != napi_number ) {
199- status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have a real component which is a number." );
199+ status = napi_throw_type_error ( env , NULL , "invalid argument. Fourth argument must have a real component which is a number." );
200200 assert ( status == napi_ok );
201201 return NULL ;
202202 }
203203
204204 status = napi_has_named_property ( env , argv [ 3 ], "im" , & hprop );
205205 assert ( status == napi_ok );
206206 if ( !hprop ) {
207- status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have an imaginary component." );
207+ status = napi_throw_type_error ( env , NULL , "invalid argument. Fourth argument must have an imaginary component." );
208208 assert ( status == napi_ok );
209209 return NULL ;
210210 }
@@ -217,7 +217,7 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
217217 status = napi_typeof ( env , zim , & zimtype );
218218 assert ( status == napi_ok );
219219 if ( zimtype != napi_number ) {
220- status = napi_throw_type_error ( env , NULL , "invalid argument. Third argument must have an imaginary component which a number." );
220+ status = napi_throw_type_error ( env , NULL , "invalid argument. Fourth argument must have an imaginary component which is a number." );
221221 assert ( status == napi_ok );
222222 return NULL ;
223223 }
0 commit comments