Bug 552905 - JS_DefineUCFunction seems to be missing a CHECK_REQUEST. r=jorendorff.

This commit is contained in:
timeless@mozdev.org 2010-03-23 09:41:43 -05:00
parent 60d5805e46
commit 11d3079664

View File

@ -4427,6 +4427,7 @@ JS_DefineUCFunction(JSContext *cx, JSObject *obj,
{
JSAtom *atom;
CHECK_REQUEST(cx);
atom = js_AtomizeChars(cx, name, AUTO_NAMELEN(name, namelen), 0);
if (!atom)
return NULL;