Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

lint

  • Loading branch information...
isaacs committed Mar 4, 2012
1 parent 1d5b6f2 commit 959a19e1184ae5d460bb0bec364a2557c5fdbd27
Showing with 5 additions and 3 deletions.
  1. +3 −1 lib/tls.js
  2. +2 −2 lib/vm.js
@@ -1010,7 +1010,9 @@ Server.prototype.setOptions = function(options) {
if (options.ciphers) this.ciphers = options.ciphers;
if (options.secureProtocol) this.secureProtocol = options.secureProtocol;
var secureOptions = options.secureOptions || 0;
if (options.honorCipherOrder) secureOptions |= constants.SSL_OP_CIPHER_SERVER_PREFERENCE;
if (options.honorCipherOrder) {
secureOptions |= constants.SSL_OP_CIPHER_SERVER_PREFERENCE;
}
if (secureOptions) this.secureOptions = secureOptions;
if (options.NPNProtocols) convertNPNProtocols(options.NPNProtocols, this);
if (options.SNICallback) {
@@ -36,13 +36,13 @@ function Script(code, ctx, filename) {
if (typeof binding.NodeScript.prototype[f] === 'function') {
this[f] = function() {
if (!(this instanceof Script)) {
throw new TypeError('invalid call to '+f);
throw new TypeError('invalid call to ' + f);
}
return ns[f].apply(ns, arguments);
};
}
}, this);
};
}

Script.createScript = function(code, ctx, name) {
return new Script(code, ctx, name);

0 comments on commit 959a19e

Please sign in to comment.
You can’t perform that action at this time.