Bug 1277429 - remove unused variable in ResolveRequestedModules; r=baku
authorNathan Froyd <froydnj@gmail.com>
Fri, 03 Jun 2016 18:31:58 -0400
changeset 339464 7f84cbdcc9f27469e260b53eb4527e80f042d1f6
parent 339463 55df8b698e664f3082b394a043d0c9b57fc0dc9f
child 339465 985578e6b5817adb81bc6ee83e07f72423d82606
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1277429
milestone49.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 1277429 - remove unused variable in ResolveRequestedModules; r=baku
dom/base/nsScriptLoader.cpp
--- a/dom/base/nsScriptLoader.cpp
+++ b/dom/base/nsScriptLoader.cpp
@@ -861,18 +861,16 @@ ResolveRequestedModules(nsModuleLoadRequ
   JS::Rooted<JSObject*> moduleRecord(cx, ms->ModuleRecord());
   JS::Rooted<JSObject*> specifiers(cx, JS::GetRequestedModules(cx, moduleRecord));
 
   uint32_t length;
   if (!JS_GetArrayLength(cx, specifiers, &length)) {
     return NS_ERROR_FAILURE;
   }
 
-  nsCOMArray<nsIURI> uris(length);
-  MOZ_ASSERT(uris.Length() == 0);
   JS::Rooted<JS::Value> arrayValue(cx, JS::ObjectValue(*specifiers));
   JS::ForOfIterator iter(cx);
   if (!iter.init(arrayValue)) {
     return NS_ERROR_FAILURE;
   }
 
   JS::Rooted<JS::Value> val(cx);
   while (true) {