summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/external-editor/main/errors/RemoveFileError.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-09-06 02:44:48 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-09-11 14:16:17 +0200
commit623dcb7bd90ccd9876487e05ce715d2ffed9799b (patch)
treecdc153534a642ffa764345f6b3a3ffb822979851 /tools/node_modules/eslint/node_modules/external-editor/main/errors/RemoveFileError.js
parent8e73594a5c82de26ebc0b1daedb20b6d3053dd4b (diff)
downloadandroid-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/RemoveFileError.js')
-rw-r--r--tools/node_modules/eslint/node_modules/external-editor/main/errors/RemoveFileError.js62
1 files changed, 36 insertions, 26 deletions
diff --git a/tools/node_modules/eslint/node_modules/external-editor/main/errors/RemoveFileError.js b/tools/node_modules/eslint/node_modules/external-editor/main/errors/RemoveFileError.js
index 658c9b0ffc..238570870e 100644
--- a/tools/node_modules/eslint/node_modules/external-editor/main/errors/RemoveFileError.js
+++ b/tools/node_modules/eslint/node_modules/external-editor/main/errors/RemoveFileError.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 RemoveFileError,
- 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;
-
- RemoveFileError = (function(superClass) {
- extend(RemoveFileError, superClass);
-
- RemoveFileError.prototype.message = 'Failed to cleanup temporary file';
-
- function RemoveFileError(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 RemoveFileError = /** @class */ (function (_super) {
+ __extends(RemoveFileError, _super);
+ function RemoveFileError(originalError) {
+ var _newTarget = this.constructor;
+ var _this = _super.call(this, "Failed to cleanup temporary file") || this;
+ _this.originalError = originalError;
+ var proto = _newTarget.prototype;
+ if (Object.setPrototypeOf) {
+ Object.setPrototypeOf(_this, proto);
+ }
+ else {
+ _this.__proto__ = _newTarget.prototype;
+ }
+ return _this;
}
-
return RemoveFileError;
-
- })(Error);
-
- module.exports = RemoveFileError;
-
-}).call(this);
+}(Error));
+exports.RemoveFileError = RemoveFileError;