var revivals = 0;
var deaths = 0;
-process.on('beforeExit', function() { deaths++; } );
+process.on('beforeExit', function() { deaths++; });
process.once('beforeExit', tryImmediate);
for (var i = 0, l = wikipedia.length; i < l; i++) {
for (var hash in wikipedia[i]['hmac']) {
// FIPS does not support MD5.
- if (common.hasFipsCrypto && hash == 'md5' )
+ if (common.hasFipsCrypto && hash == 'md5')
continue;
var result = crypto.createHmac(hash, wikipedia[i]['key'])
.update(wikipedia[i]['data'])
var server = http.createServer(function(req, res) {
const m = /\/(.*)/.exec(req.url);
const reqid = parseInt(m[1], 10);
- if ( reqid % 2 ) {
+ if (reqid % 2) {
// do not reply the request
} else {
res.writeHead(200, {'Content-Type': 'text/plain'});
assert.doesNotThrow(function() {
process.binding('buffer');
}, function(err) {
- if ( (err instanceof Error) ) {
+ if (err instanceof Error) {
return true;
}
}, 'unexpected error');
setInterval(function() {
interval_count += 1;
- var endtime = new Date( );
+ var endtime = new Date();
var diff = endtime - starttime;
assert.ok(diff > 0);