Bug 939420 - Fix shell neuter() function to return |undefined| instead of itself. r=jorendorff

This commit is contained in:
Jan de Mooij 2013-11-18 21:56:02 +01:00
parent 84c0745ae1
commit b94ff25dcf

View File

@ -1329,7 +1329,11 @@ Neuter(JSContext *cx, unsigned argc, jsval *vp)
return false;
}
return JS_NeuterArrayBuffer(cx, obj);
if (!JS_NeuterArrayBuffer(cx, obj))
return false;
args.rval().setUndefined();
return true;
}
static const JSFunctionSpecWithHelp TestingFunctions[] = {