Browse Source

lib,test: remove extra semicolons

PR-URL: https://github.com/nodejs/node/pull/2205
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
process-exit-stdio-flushing
Michaël Zasso 9 years ago
committed by Roman Reiss
parent
commit
0ec093cd41
  1. 4
      lib/_debugger.js
  2. 2
      lib/events.js
  3. 2
      lib/net.js
  4. 2
      lib/tls.js
  5. 2
      test/common.js
  6. 2
      test/debugger/helper-debugger-repl.js
  7. 2
      test/parallel/test-child-process-spawnsync-input.js
  8. 2
      test/parallel/test-http-1.0-keep-alive.js
  9. 4
      test/parallel/test-stream-big-packet.js
  10. 2
      test/parallel/test-stream-pipe-without-listenerCount.js
  11. 2
      test/parallel/test-stream-writable-change-default-encoding.js
  12. 6
      test/parallel/test-stream-writable-decoded-encoding.js
  13. 2
      test/parallel/test-stream2-base64-single-char-read-end.js
  14. 2
      test/parallel/test-stream3-pause-then-read.js
  15. 2
      test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js
  16. 2
      test/parallel/test-tls-alpn-server-client.js
  17. 2
      test/parallel/test-tls-npn-server-client.js
  18. 2
      test/parallel/test-tls-sni-option.js
  19. 2
      test/parallel/test-tls-sni-server-client.js
  20. 2
      test/parallel/test-url.js
  21. 2
      test/parallel/test-zlib-flush-drain.js
  22. 2
      test/pummel/test-tls-server-large-request.js
  23. 4
      test/sequential/test-child-process-fork-getconnections.js
  24. 2
      test/sequential/test-tcp-wrap-listen.js

4
lib/_debugger.js

@ -574,7 +574,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
});
cb(null, mirror);
}
};
}
});
return;
} else if (handle.type === 'function') {
@ -800,7 +800,7 @@ function Interface(stdin, stdout, args) {
} else {
self.repl.context[key] = fn;
}
};
}
// Copy all prototype methods in repl context
// Setup them as getters if possible

2
lib/events.js

@ -434,7 +434,7 @@ function listenerCount(type) {
}
return 0;
};
}
// About 1.5x faster than the two-arg version of Array#splice().
function spliceOne(list, index) {

2
lib/net.js

@ -1183,7 +1183,7 @@ function createServerHandle(address, port, addressType, fd) {
}
return handle;
};
}
exports._createServerHandle = createServerHandle;

2
lib/tls.js

@ -46,7 +46,7 @@ function convertProtocols(protocols) {
}, 0);
return buff;
};
}
exports.convertNPNProtocols = function(protocols, out) {
// If protocols is Array - translate it into buffer

2
test/common.js

@ -337,7 +337,7 @@ function leakedGlobals() {
leaked.push(val);
return leaked;
};
}
exports.leakedGlobals = leakedGlobals;
// Turn this off if the test should not check for global leaks.

2
test/debugger/helper-debugger-repl.js

@ -103,7 +103,7 @@ function addTest(input, output) {
} else {
quit();
}
};
}
expected.push({input: input, lines: output, callback: next});
}

2
test/parallel/test-child-process-spawnsync-input.js

@ -23,7 +23,7 @@ var ret;
function checkSpawnSyncRet(ret) {
assert.strictEqual(ret.status, 0);
assert.strictEqual(ret.error, undefined);
};
}
function verifyBufOutput(ret) {
checkSpawnSyncRet(ret);

2
test/parallel/test-http-1.0-keep-alive.js

@ -122,7 +122,7 @@ function check(tests) {
current++;
if (ctx.expectClose) return;
conn.removeListener('close', onclose);
conn.removeListener('data', ondata);;
conn.removeListener('data', ondata);
connected();
}
conn.on('data', ondata);

4
test/parallel/test-stream-big-packet.js

@ -8,7 +8,7 @@ var passed = false;
function PassThrough() {
stream.Transform.call(this);
};
}
util.inherits(PassThrough, stream.Transform);
PassThrough.prototype._transform = function(chunk, encoding, done) {
this.push(chunk);
@ -17,7 +17,7 @@ PassThrough.prototype._transform = function(chunk, encoding, done) {
function TestStream() {
stream.Transform.call(this);
};
}
util.inherits(TestStream, stream.Transform);
TestStream.prototype._transform = function(chunk, encoding, done) {
if (!passed) {

2
test/parallel/test-stream-pipe-without-listenerCount.js

@ -16,4 +16,4 @@ r.on('error', common.mustCall(noop));
w.on('error', common.mustCall(noop));
r.pipe(w);
function noop() {};
function noop() {}

2
test/parallel/test-stream-writable-change-default-encoding.js

@ -8,7 +8,7 @@ var util = require('util');
function MyWritable(fn, options) {
stream.Writable.call(this, options);
this.fn = fn;
};
}
util.inherits(MyWritable, stream.Writable);

6
test/parallel/test-stream-writable-decoded-encoding.js

@ -8,7 +8,7 @@ var util = require('util');
function MyWritable(fn, options) {
stream.Writable.call(this, options);
this.fn = fn;
};
}
util.inherits(MyWritable, stream.Writable);
@ -17,7 +17,7 @@ MyWritable.prototype._write = function(chunk, encoding, callback) {
callback();
};
;(function decodeStringsTrue() {
(function decodeStringsTrue() {
var m = new MyWritable(function(isBuffer, type, enc) {
assert(isBuffer);
assert.equal(type, 'object');
@ -28,7 +28,7 @@ MyWritable.prototype._write = function(chunk, encoding, callback) {
m.end();
})();
;(function decodeStringsFalse() {
(function decodeStringsFalse() {
var m = new MyWritable(function(isBuffer, type, enc) {
assert(!isBuffer);
assert.equal(type, 'string');

2
test/parallel/test-stream2-base64-single-char-read-end.js

@ -17,7 +17,7 @@ src._read = function(n) {
src.push(new Buffer('1'));
src.push(null);
});
};
}
};
dst._write = function(chunk, enc, cb) {

2
test/parallel/test-stream3-pause-then-read.js

@ -42,7 +42,7 @@ function read100() {
function readn(n, then) {
console.error('read %d', n);
expectEndingData -= n;
;(function read() {
(function read() {
var c = r.read(n);
if (!c)
r.once('readable', read);

2
test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js

@ -39,7 +39,7 @@ server.listen(common.PORT, common.localhostIPv4, function() {
if (nbClientsEnded === 2) {
server.close();
}
};
}
const client1 = net.connect({ port: common.PORT });
client1.on('end', addEndedClient);

2
test/parallel/test-tls-alpn-server-client.js

@ -66,7 +66,7 @@ function runTest(clientsOptions, serverOptions, cb) {
cb(results);
}
});
};
}
}

2
test/parallel/test-tls-npn-server-client.js

@ -85,7 +85,7 @@ function startTest() {
callback();
});
};
}
connectClient(clientsOptions[0], function() {
connectClient(clientsOptions[1], function() {

2
test/parallel/test-tls-sni-option.js

@ -146,7 +146,7 @@ function startTest() {
else
connectClient(i + 1, callback);
}
};
}
connectClient(0, function() {
server.close();

2
test/parallel/test-tls-sni-server-client.js

@ -103,7 +103,7 @@ function startTest() {
// Continue
start();
});
};
}
start();
}

2
test/parallel/test-url.js

@ -1569,6 +1569,6 @@ var throws = [
];
for (var i = 0; i < throws.length; i++) {
assert.throws(function() { url.format(throws[i]); }, TypeError);
};
}
assert(url.format('') === '');
assert(url.format({}) === '');

2
test/parallel/test-zlib-flush-drain.js

@ -33,7 +33,7 @@ deflater.flush(function(err) {
});
deflater.on('drain', function() {
drainCount++;;
drainCount++;
});
process.once('exit', function() {

2
test/pummel/test-tls-server-large-request.js

@ -24,7 +24,7 @@ var options = {
function Mediator() {
stream.Writable.call(this);
this.buf = '';
};
}
util.inherits(Mediator, stream.Writable);
Mediator.prototype._write = function write(data, enc, cb) {

4
test/sequential/test-child-process-fork-getconnections.js

@ -11,7 +11,7 @@ if (process.argv[2] === 'child') {
process.on('message', function(m, socket) {
function sendClosed(id) {
process.send({ id: id, status: 'closed'});
};
}
if (m.cmd === 'new') {
assert(socket);
@ -82,7 +82,7 @@ if (process.argv[2] === 'child') {
});
sent++;
child.send({ id: i, cmd: 'close' });
};
}
let closeEmitted = false;
server.on('close', function() {

2
test/sequential/test-tcp-wrap-listen.js

@ -65,7 +65,7 @@ server.onconnection = function(err, client) {
writeCount++;
console.log('write ' + writeCount);
maybeCloseClient();
};
}
sliceCount++;
} else {

Loading…
Cancel
Save