diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-09-06 02:44:48 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-09-11 14:16:17 +0200 |
commit | 623dcb7bd90ccd9876487e05ce715d2ffed9799b (patch) | |
tree | cdc153534a642ffa764345f6b3a3ffb822979851 /tools/node_modules/eslint/node_modules/external-editor/main/errors/LaunchEditorError.js | |
parent | 8e73594a5c82de26ebc0b1daedb20b6d3053dd4b (diff) | |
download | android-node-v8-623dcb7bd90ccd9876487e05ce715d2ffed9799b.tar.gz android-node-v8-623dcb7bd90ccd9876487e05ce715d2ffed9799b.tar.bz2 android-node-v8-623dcb7bd90ccd9876487e05ce715d2ffed9799b.zip |
tools: update eslint to v5.5.0
PR-URL: https://github.com/nodejs/node/pull/22720
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'tools/node_modules/eslint/node_modules/external-editor/main/errors/LaunchEditorError.js')
-rw-r--r-- | tools/node_modules/eslint/node_modules/external-editor/main/errors/LaunchEditorError.js | 62 |
1 files changed, 36 insertions, 26 deletions
diff --git a/tools/node_modules/eslint/node_modules/external-editor/main/errors/LaunchEditorError.js b/tools/node_modules/eslint/node_modules/external-editor/main/errors/LaunchEditorError.js index d956a1b733..3ab4817989 100644 --- a/tools/node_modules/eslint/node_modules/external-editor/main/errors/LaunchEditorError.js +++ b/tools/node_modules/eslint/node_modules/external-editor/main/errors/LaunchEditorError.js @@ -1,29 +1,39 @@ -// Generated by CoffeeScript 1.12.7 - -/* - ExternalEditor - Kevin Gravier <kevin@mrkmg.com> - MIT +"use strict"; +/*** + * Node External Editor + * + * Kevin Gravier <kevin@mrkmg.com> + * MIT 2018 */ - -(function() { - var LaunchEditorError, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - LaunchEditorError = (function(superClass) { - extend(LaunchEditorError, superClass); - - LaunchEditorError.prototype.message = 'Failed launch editor'; - - function LaunchEditorError(original_error) { - this.original_error = original_error; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + } + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var LaunchEditorError = /** @class */ (function (_super) { + __extends(LaunchEditorError, _super); + function LaunchEditorError(originalError) { + var _newTarget = this.constructor; + var _this = _super.call(this, "Failed launch editor") || this; + _this.originalError = originalError; + var proto = _newTarget.prototype; + if (Object.setPrototypeOf) { + Object.setPrototypeOf(_this, proto); + } + else { + _this.__proto__ = _newTarget.prototype; + } + return _this; } - return LaunchEditorError; - - })(Error); - - module.exports = LaunchEditorError; - -}).call(this); +}(Error)); +exports.LaunchEditorError = LaunchEditorError; |