In ContentClosure.upcall, remove nextSegmentNumberByteArray and use nextSegmentNumber directly.
diff --git a/js/ccnxProtocol/components/ccnxProtocolService.js b/js/ccnxProtocol/components/ccnxProtocolService.js
index 108b569..5308fdd 100644
--- a/js/ccnxProtocol/components/ccnxProtocolService.js
+++ b/js/ccnxProtocol/components/ccnxProtocolService.js
@@ -194,14 +194,9 @@
         var nextSegmentNumber = new Uint8Array(segmentNumberPlus1.length + 1);

         nextSegmentNumber.set(segmentNumberPlus1, 1);

         

-        // TODO: When Name uses Uint8Array, we don't need a byte array.

-        var nextSegmentNumberByteArray = [];

-        for (var i = 0; i < nextSegmentNumber.length; ++i)

-            nextSegmentNumberByteArray.push(nextSegmentNumber[i]);

-        

         var components = contentObject.name.components.slice

             (0, contentObject.name.components.length - 1);

-        components.push(nextSegmentNumberByteArray);

+        components.push(nextSegmentNumber);

         this.ndn.expressInterest(new Name(components), this);

     }

     else