diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp index a07cd7562819..8f4472474a40 100644 --- a/js/src/builtin/TestingFunctions.cpp +++ b/js/src/builtin/TestingFunctions.cpp @@ -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[] = {