mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 15:40:39 +00:00

Update ESLint to 3.0.0. This includes an enhancement to `no-unused-vars` such that it finds a few instances in our code base that it did not find previously (fixed in previous commits readying this for landing). PR-URL: https://github.com/nodejs/node/pull/7601 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
36 lines
816 B
JavaScript
36 lines
816 B
JavaScript
/*
|
|
* @fileoverview Utilities for Doctrine
|
|
* @author Yusuke Suzuki <utatane.tea@gmail.com>
|
|
*/
|
|
|
|
|
|
(function () {
|
|
'use strict';
|
|
|
|
var VERSION;
|
|
|
|
VERSION = require('../package.json').version;
|
|
exports.VERSION = VERSION;
|
|
|
|
function DoctrineError(message) {
|
|
this.name = 'DoctrineError';
|
|
this.message = message;
|
|
}
|
|
DoctrineError.prototype = (function () {
|
|
var Middle = function () { };
|
|
Middle.prototype = Error.prototype;
|
|
return new Middle();
|
|
}());
|
|
DoctrineError.prototype.constructor = DoctrineError;
|
|
exports.DoctrineError = DoctrineError;
|
|
|
|
function throwError(message) {
|
|
throw new DoctrineError(message);
|
|
}
|
|
exports.throwError = throwError;
|
|
|
|
exports.assert = require('assert');
|
|
}());
|
|
|
|
/* vim: set sw=4 ts=4 et tw=80 : */
|