@@ -73,7 +73,7 @@ static void cfunctions(void)
7373 ret = eval (ctx , "cfunc()" );
7474 assert (JS_IsException (ret ));
7575 ret = JS_GetException (ctx );
76- assert (JS_IsError (ctx , ret ));
76+ assert (JS_IsError (ret ));
7777 stack = JS_GetPropertyStr (ctx , ret , "stack" );
7878 assert (JS_IsString (stack ));
7979 s = JS_ToCString (ctx , stack );
@@ -90,7 +90,7 @@ static void cfunctions(void)
9090 ret = eval (ctx , "cfuncdata()" );
9191 assert (JS_IsException (ret ));
9292 ret = JS_GetException (ctx );
93- assert (JS_IsError (ctx , ret ));
93+ assert (JS_IsError (ret ));
9494 stack = JS_GetPropertyStr (ctx , ret , "stack" );
9595 assert (JS_IsString (stack ));
9696 s = JS_ToCString (ctx , stack );
@@ -137,7 +137,7 @@ static void sync_call(void)
137137 JS_FreeValue (ctx , ret );
138138 assert (JS_HasException (ctx ));
139139 JSValue e = JS_GetException (ctx );
140- assert (JS_IsUncatchableError (ctx , e ));
140+ assert (JS_IsUncatchableError (e ));
141141 JS_FreeValue (ctx , e );
142142 JS_FreeContext (ctx );
143143 JS_FreeRuntime (rt );
@@ -170,7 +170,7 @@ static void async_call(void)
170170 assert (r == -1 );
171171 assert (JS_HasException (ctx ));
172172 JSValue e = JS_GetException (ctx );
173- assert (JS_IsUncatchableError (ctx , e ));
173+ assert (JS_IsUncatchableError (e ));
174174 JS_FreeValue (ctx , e );
175175 JS_FreeContext (ctx );
176176 JS_FreeRuntime (rt );
@@ -215,7 +215,7 @@ static void async_call_stack_overflow(void)
215215 }
216216 assert (r == 1 );
217217 assert (!JS_HasException (ctx ));
218- assert (JS_IsError (ctx , value )); // stack overflow should be caught
218+ assert (JS_IsError (value )); // stack overflow should be caught
219219 JS_FreeValue (ctx , value );
220220 JS_FreeContext (ctx );
221221 JS_FreeRuntime (rt );
@@ -625,7 +625,7 @@ static void new_errors(void)
625625 JSValue obj = (* e -> func )(ctx , "the %s" , "needle" );
626626 assert (!JS_IsException (obj ));
627627 assert (JS_IsObject (obj ));
628- assert (JS_IsError (ctx , obj ));
628+ assert (JS_IsError (obj ));
629629 const char * haystack = JS_ToCString (ctx , obj );
630630 char needle [256 ];
631631 snprintf (needle , sizeof (needle ), "%s: the needle" , e -> name );
0 commit comments