Bug 1231224 part 5 - Use infallibleAppend in Debugger::setupTraceLogger. r=h4writer
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 10 Dec 2015 13:22:14 -0500
changeset 310258 5000824d37a7d4a8d30cbe35cec1b7d00c21aa78
parent 310257 96873f172d313bf2b742a50cf16998c52149f426
child 310259 136542de8e2ea963923a4296d3b02b27fe7eb021
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersh4writer
bugs1231224
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1231224 part 5 - Use infallibleAppend in Debugger::setupTraceLogger. r=h4writer
js/src/vm/Debugger.cpp
--- a/js/src/vm/Debugger.cpp
+++ b/js/src/vm/Debugger.cpp
@@ -4368,18 +4368,18 @@ Debugger::setupTraceLogger(JSContext* cx
             args.rval().setBoolean(false);
             return true;
         }
 
         RootedValue v(cx);
         if (!GetProperty(cx, obj, obj, ids[i], &v))
             return false;
 
-        textIds.append(textId);
-        values.append(ToBoolean(v));
+        textIds.infallibleAppend(textId);
+        values.infallibleAppend(ToBoolean(v));
     }
 
     MOZ_ASSERT(ids.length() == textIds.length());
     MOZ_ASSERT(textIds.length() == values.length());
 
     for (size_t i = 0; i < textIds.length(); i++) {
         if (values[i])
             TraceLogEnableTextId(cx, textIds[i]);