summaryrefslogtreecommitdiff
path: root/js/demo/Ice/throughput/browser/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/demo/Ice/throughput/browser/Client.js')
-rw-r--r--js/demo/Ice/throughput/browser/Client.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/js/demo/Ice/throughput/browser/Client.js b/js/demo/Ice/throughput/browser/Client.js
index 1978a93045c..dec7eedd1bc 100644
--- a/js/demo/Ice/throughput/browser/Client.js
+++ b/js/demo/Ice/throughput/browser/Client.js
@@ -14,20 +14,21 @@ var ThroughputPrx = Demo.ThroughputPrx;
//
// Initialize sequences.
//
+var i;
var byteSeq = new Uint8Array(Demo.ByteSeqSize);
-for(var i = 0; i < Demo.ByteSeqSize; ++i)
+for(i = 0; i < Demo.ByteSeqSize; ++i)
{
byteSeq[i] = 0;
}
var stringSeq = [];
-for(var i = 0; i < Demo.StringSeqSize; ++i)
+for(i = 0; i < Demo.StringSeqSize; ++i)
{
stringSeq[i] = "hello";
}
var structSeq = [];
-for(var i = 0; i < Demo.StringDoubleSeqSize; ++i)
+for(i = 0; i < Demo.StringDoubleSeqSize; ++i)
{
structSeq[i] = new Demo.StringDouble();
structSeq[i].s = "hello";
@@ -35,7 +36,7 @@ for(var i = 0; i < Demo.StringDoubleSeqSize; ++i)
}
var fixedSeq = [];
-for(var i = 0; i < Demo.FixedSeqSize; ++i)
+for(i = 0; i < Demo.FixedSeqSize; ++i)
{
fixedSeq[i] = new Demo.Fixed();
fixedSeq[i].i = 0;
@@ -66,10 +67,10 @@ function run()
return ThroughputPrx.checkedCast(proxy).then(
function(twoway)
{
- oneway = twoway.ice_oneway();
+ var oneway = twoway.ice_oneway();
var seq;
- var seqSize
+ var seqSize;
var wireSize;
var proxy;
var operation;