forked from mirrors/0ad
Fix missing JSAutoRequest before JS_ReportError in various commits.
Differential Revision: https://code.wildfiregames.com/D2256 Tested on: clang 8.0.1, Jenkins This was SVN commit r22949.
This commit is contained in:
@@ -214,6 +214,7 @@ bool deepfreeze(JSContext* cx, uint argc, JS::Value* vp)
|
||||
|
||||
if (args.length() != 1 || !args.get(0).isObject())
|
||||
{
|
||||
JSAutoRequest rq(cx);
|
||||
JS_ReportError(cx, "deepfreeze requires exactly one object as an argument.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user