THRIFT-2511 Node.js compact protocol
Client: Node
Patch: Randy Abernethy

Adds Compact Protocol to Node.js, tests in testAll.sh and repairs all
library JSHint warnings.
diff --git a/lib/nodejs/test/thrift_test_driver.js b/lib/nodejs/test/thrift_test_driver.js
index 02613ec..b1d744b 100644
--- a/lib/nodejs/test/thrift_test_driver.js
+++ b/lib/nodejs/test/thrift_test_driver.js
@@ -146,11 +146,21 @@
   assert.equal(-5, response);

 });

 

+client.testI64(734359738368, function(err, response) {

+  assert( ! err);

+  assert.equal(734359738368, response);

+});

+

 client.testI64(-34359738368, function(err, response) {

   assert( ! err);

   assert.equal(-34359738368, response);

 });

 

+client.testI64(-734359738368, function(err, response) {

+  assert( ! err);

+  assert.equal(-734359738368, response);

+});

+

 client.testDouble(-5.2098523, function(err, response) {

   assert( ! err);

   assert.equal(-5.2098523, response);

@@ -192,21 +202,22 @@
 

 var mapTestInput = {

   "a":"123", "a b":"with spaces ", "same":"same", "0":"numeric key",

-  "longValue":stringTest, stringTest:"long key"

+  "longValue":stringTest, "Afrikaans, Alemannisch, Aragonés, العربية, مصرى, ":"long key"

 };

 client.testStringMap(mapTestInput, function(err, response) {

   assert( ! err);

   assert.deepEqual(mapTestInput, response);

 });

 

-var setTestInput = [1,2,3];

-client.testSet(setTestInput, function(err, response) {

+var setTestSetInput = [1,2,3];

+client.testSet(setTestSetInput, function(err, response) {

   assert( ! err);

-  assert.deepEqual(setTestInput, response);

+  assert.deepEqual(setTestSetInput, response);

 });

-client.testList(setTestInput, function(err, response) {

+var setTestListInput = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];

+client.testList(setTestListInput, function(err, response) {

   assert( ! err);

-  assert.deepEqual(setTestInput, response);

+  assert.deepEqual(setTestListInput, response);

 });

 

 client.testEnum(ttypes.Numberz.ONE, function(err, response) {

@@ -223,7 +234,7 @@
   "4": {"1":1, "2":2, "3":3, "4":4},

   "-4": {"-4":-4, "-3":-3, "-2":-2, "-1":-1}

 };

-client.testMapMap(mapMapTest, function(err, response) {

+client.testMapMap(1, function(err, response) {

   assert( ! err);

   assert.deepEqual(mapMapTest, response);

 });