Update to eslint 1.2.1

This commit is contained in:
Nicholas Dudfield
2015-08-24 13:40:01 +07:00
parent b79bb53b10
commit aca6cb96b7
4 changed files with 15 additions and 9 deletions

View File

@@ -28,7 +28,7 @@
"babel-eslint": "^4.0.5", "babel-eslint": "^4.0.5",
"babel-loader": "^5.3.2", "babel-loader": "^5.3.2",
"coveralls": "~2.10.0", "coveralls": "~2.10.0",
"eslint": "^1.2.0", "eslint": "^1.2.1",
"eventemitter2": "^0.4.14", "eventemitter2": "^0.4.14",
"istanbul": "~0.3.5", "istanbul": "~0.3.5",
"lodash": "^3.10.0", "lodash": "^3.10.0",

View File

@@ -3,13 +3,19 @@
const hashjs = require('hash.js'); const hashjs = require('hash.js');
const Sha512 = require('./sha512'); const Sha512 = require('./sha512');
function unused() {}
function isVirtual(_, __, descriptor) { function isVirtual(_, __, descriptor) {
unused(_, __);
descriptor.value = function() { descriptor.value = function() {
throw new Error('virtual method not implemented '); throw new Error('virtual method not implemented ');
}; };
} }
function cached(_, name, descriptor) { function cached(_, name, descriptor) {
unused(_);
const computer = descriptor.value; const computer = descriptor.value;
const key = '_' + name; const key = '_' + name;
descriptor.value = function() { descriptor.value = function() {