mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
15 lines
336 B
C++
15 lines
336 B
C++
#include "precompiled.h"
|
|
|
|
#include "SpiderMonkey.h"
|
|
|
|
jsval jsu_report_param_error(JSContext* cx, jsval* rval)
|
|
{
|
|
JS_ReportError(cx, "Invalid parameter(s) or count");
|
|
|
|
if(rval)
|
|
*rval = JSVAL_NULL;
|
|
|
|
// yes, we had an error, but returning JS_FALSE would cause SpiderMonkey
|
|
// to abort. that would be hard to debug.
|
|
return JS_TRUE;
|
|
}
|