         COMPILE::JS
         {
             var newBuffer:ArrayBuffer;
-            var newView:Int8Array;
-            var view:Int8Array;
+            var newView:Uint8Array;
+            var view:Uint8Array;
             var i:int;
             var n:int;
             

        }
        COMPILE::JS
        {
            var view:Int8Array;
            
            growBuffer(1);
            
            view = new Int8Array(ba, _position, 1);
            view[0] = byte;
            _position++;
        }

        }
        COMPILE::JS
        {
            var view:Uint8Array;
            
            view = new Uint8Array(ba, _position, 1);
            _position++;
            return view[0];
        }
