Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/updraftp.../includes/handleba...
File: handlebars.runtime.js
/**!
[0] Fix | Delete
[1] Fix | Delete
@license
[2] Fix | Delete
handlebars v4.7.7
[3] Fix | Delete
[4] Fix | Delete
Copyright (C) 2011-2019 by Yehuda Katz
[5] Fix | Delete
[6] Fix | Delete
Permission is hereby granted, free of charge, to any person obtaining a copy
[7] Fix | Delete
of this software and associated documentation files (the "Software"), to deal
[8] Fix | Delete
in the Software without restriction, including without limitation the rights
[9] Fix | Delete
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
[10] Fix | Delete
copies of the Software, and to permit persons to whom the Software is
[11] Fix | Delete
furnished to do so, subject to the following conditions:
[12] Fix | Delete
[13] Fix | Delete
The above copyright notice and this permission notice shall be included in
[14] Fix | Delete
all copies or substantial portions of the Software.
[15] Fix | Delete
[16] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[17] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[18] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[19] Fix | Delete
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
[20] Fix | Delete
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
[21] Fix | Delete
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
[22] Fix | Delete
THE SOFTWARE.
[23] Fix | Delete
[24] Fix | Delete
*/
[25] Fix | Delete
(function webpackUniversalModuleDefinition(root, factory) {
[26] Fix | Delete
if(typeof exports === 'object' && typeof module === 'object')
[27] Fix | Delete
module.exports = factory();
[28] Fix | Delete
else if(typeof define === 'function' && define.amd)
[29] Fix | Delete
define([], factory);
[30] Fix | Delete
else if(typeof exports === 'object')
[31] Fix | Delete
exports["Handlebars"] = factory();
[32] Fix | Delete
else
[33] Fix | Delete
root["Handlebars"] = factory();
[34] Fix | Delete
})(this, function() {
[35] Fix | Delete
return /******/ (function(modules) { // webpackBootstrap
[36] Fix | Delete
/******/ // The module cache
[37] Fix | Delete
/******/ var installedModules = {};
[38] Fix | Delete
[39] Fix | Delete
/******/ // The require function
[40] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[41] Fix | Delete
[42] Fix | Delete
/******/ // Check if module is in cache
[43] Fix | Delete
/******/ if(installedModules[moduleId])
[44] Fix | Delete
/******/ return installedModules[moduleId].exports;
[45] Fix | Delete
[46] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[47] Fix | Delete
/******/ var module = installedModules[moduleId] = {
[48] Fix | Delete
/******/ exports: {},
[49] Fix | Delete
/******/ id: moduleId,
[50] Fix | Delete
/******/ loaded: false
[51] Fix | Delete
/******/ };
[52] Fix | Delete
[53] Fix | Delete
/******/ // Execute the module function
[54] Fix | Delete
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
[55] Fix | Delete
[56] Fix | Delete
/******/ // Flag the module as loaded
[57] Fix | Delete
/******/ module.loaded = true;
[58] Fix | Delete
[59] Fix | Delete
/******/ // Return the exports of the module
[60] Fix | Delete
/******/ return module.exports;
[61] Fix | Delete
/******/ }
[62] Fix | Delete
[63] Fix | Delete
[64] Fix | Delete
/******/ // expose the modules object (__webpack_modules__)
[65] Fix | Delete
/******/ __webpack_require__.m = modules;
[66] Fix | Delete
[67] Fix | Delete
/******/ // expose the module cache
[68] Fix | Delete
/******/ __webpack_require__.c = installedModules;
[69] Fix | Delete
[70] Fix | Delete
/******/ // __webpack_public_path__
[71] Fix | Delete
/******/ __webpack_require__.p = "";
[72] Fix | Delete
[73] Fix | Delete
/******/ // Load entry module and return exports
[74] Fix | Delete
/******/ return __webpack_require__(0);
[75] Fix | Delete
/******/ })
[76] Fix | Delete
/************************************************************************/
[77] Fix | Delete
/******/ ([
[78] Fix | Delete
/* 0 */
[79] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[80] Fix | Delete
[81] Fix | Delete
'use strict';
[82] Fix | Delete
[83] Fix | Delete
var _interopRequireWildcard = __webpack_require__(1)['default'];
[84] Fix | Delete
[85] Fix | Delete
var _interopRequireDefault = __webpack_require__(2)['default'];
[86] Fix | Delete
[87] Fix | Delete
exports.__esModule = true;
[88] Fix | Delete
[89] Fix | Delete
var _handlebarsBase = __webpack_require__(3);
[90] Fix | Delete
[91] Fix | Delete
var base = _interopRequireWildcard(_handlebarsBase);
[92] Fix | Delete
[93] Fix | Delete
// Each of these augment the Handlebars object. No need to setup here.
[94] Fix | Delete
// (This is done to easily share code between commonjs and browse envs)
[95] Fix | Delete
[96] Fix | Delete
var _handlebarsSafeString = __webpack_require__(36);
[97] Fix | Delete
[98] Fix | Delete
var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
[99] Fix | Delete
[100] Fix | Delete
var _handlebarsException = __webpack_require__(5);
[101] Fix | Delete
[102] Fix | Delete
var _handlebarsException2 = _interopRequireDefault(_handlebarsException);
[103] Fix | Delete
[104] Fix | Delete
var _handlebarsUtils = __webpack_require__(4);
[105] Fix | Delete
[106] Fix | Delete
var Utils = _interopRequireWildcard(_handlebarsUtils);
[107] Fix | Delete
[108] Fix | Delete
var _handlebarsRuntime = __webpack_require__(37);
[109] Fix | Delete
[110] Fix | Delete
var runtime = _interopRequireWildcard(_handlebarsRuntime);
[111] Fix | Delete
[112] Fix | Delete
var _handlebarsNoConflict = __webpack_require__(43);
[113] Fix | Delete
[114] Fix | Delete
var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
[115] Fix | Delete
[116] Fix | Delete
// For compatibility and usage outside of module systems, make the Handlebars object a namespace
[117] Fix | Delete
function create() {
[118] Fix | Delete
var hb = new base.HandlebarsEnvironment();
[119] Fix | Delete
[120] Fix | Delete
Utils.extend(hb, base);
[121] Fix | Delete
hb.SafeString = _handlebarsSafeString2['default'];
[122] Fix | Delete
hb.Exception = _handlebarsException2['default'];
[123] Fix | Delete
hb.Utils = Utils;
[124] Fix | Delete
hb.escapeExpression = Utils.escapeExpression;
[125] Fix | Delete
[126] Fix | Delete
hb.VM = runtime;
[127] Fix | Delete
hb.template = function (spec) {
[128] Fix | Delete
return runtime.template(spec, hb);
[129] Fix | Delete
};
[130] Fix | Delete
[131] Fix | Delete
return hb;
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
var inst = create();
[135] Fix | Delete
inst.create = create;
[136] Fix | Delete
[137] Fix | Delete
_handlebarsNoConflict2['default'](inst);
[138] Fix | Delete
[139] Fix | Delete
inst['default'] = inst;
[140] Fix | Delete
[141] Fix | Delete
exports['default'] = inst;
[142] Fix | Delete
module.exports = exports['default'];
[143] Fix | Delete
[144] Fix | Delete
/***/ }),
[145] Fix | Delete
/* 1 */
[146] Fix | Delete
/***/ (function(module, exports) {
[147] Fix | Delete
[148] Fix | Delete
"use strict";
[149] Fix | Delete
[150] Fix | Delete
exports["default"] = function (obj) {
[151] Fix | Delete
if (obj && obj.__esModule) {
[152] Fix | Delete
return obj;
[153] Fix | Delete
} else {
[154] Fix | Delete
var newObj = {};
[155] Fix | Delete
[156] Fix | Delete
if (obj != null) {
[157] Fix | Delete
for (var key in obj) {
[158] Fix | Delete
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
[159] Fix | Delete
}
[160] Fix | Delete
}
[161] Fix | Delete
[162] Fix | Delete
newObj["default"] = obj;
[163] Fix | Delete
return newObj;
[164] Fix | Delete
}
[165] Fix | Delete
};
[166] Fix | Delete
[167] Fix | Delete
exports.__esModule = true;
[168] Fix | Delete
[169] Fix | Delete
/***/ }),
[170] Fix | Delete
/* 2 */
[171] Fix | Delete
/***/ (function(module, exports) {
[172] Fix | Delete
[173] Fix | Delete
"use strict";
[174] Fix | Delete
[175] Fix | Delete
exports["default"] = function (obj) {
[176] Fix | Delete
return obj && obj.__esModule ? obj : {
[177] Fix | Delete
"default": obj
[178] Fix | Delete
};
[179] Fix | Delete
};
[180] Fix | Delete
[181] Fix | Delete
exports.__esModule = true;
[182] Fix | Delete
[183] Fix | Delete
/***/ }),
[184] Fix | Delete
/* 3 */
[185] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[186] Fix | Delete
[187] Fix | Delete
'use strict';
[188] Fix | Delete
[189] Fix | Delete
var _interopRequireDefault = __webpack_require__(2)['default'];
[190] Fix | Delete
[191] Fix | Delete
exports.__esModule = true;
[192] Fix | Delete
exports.HandlebarsEnvironment = HandlebarsEnvironment;
[193] Fix | Delete
[194] Fix | Delete
var _utils = __webpack_require__(4);
[195] Fix | Delete
[196] Fix | Delete
var _exception = __webpack_require__(5);
[197] Fix | Delete
[198] Fix | Delete
var _exception2 = _interopRequireDefault(_exception);
[199] Fix | Delete
[200] Fix | Delete
var _helpers = __webpack_require__(9);
[201] Fix | Delete
[202] Fix | Delete
var _decorators = __webpack_require__(29);
[203] Fix | Delete
[204] Fix | Delete
var _logger = __webpack_require__(31);
[205] Fix | Delete
[206] Fix | Delete
var _logger2 = _interopRequireDefault(_logger);
[207] Fix | Delete
[208] Fix | Delete
var _internalProtoAccess = __webpack_require__(32);
[209] Fix | Delete
[210] Fix | Delete
var VERSION = '4.7.7';
[211] Fix | Delete
exports.VERSION = VERSION;
[212] Fix | Delete
var COMPILER_REVISION = 8;
[213] Fix | Delete
exports.COMPILER_REVISION = COMPILER_REVISION;
[214] Fix | Delete
var LAST_COMPATIBLE_COMPILER_REVISION = 7;
[215] Fix | Delete
[216] Fix | Delete
exports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION;
[217] Fix | Delete
var REVISION_CHANGES = {
[218] Fix | Delete
1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it
[219] Fix | Delete
2: '== 1.0.0-rc.3',
[220] Fix | Delete
3: '== 1.0.0-rc.4',
[221] Fix | Delete
4: '== 1.x.x',
[222] Fix | Delete
5: '== 2.0.0-alpha.x',
[223] Fix | Delete
6: '>= 2.0.0-beta.1',
[224] Fix | Delete
7: '>= 4.0.0 <4.3.0',
[225] Fix | Delete
8: '>= 4.3.0'
[226] Fix | Delete
};
[227] Fix | Delete
[228] Fix | Delete
exports.REVISION_CHANGES = REVISION_CHANGES;
[229] Fix | Delete
var objectType = '[object Object]';
[230] Fix | Delete
[231] Fix | Delete
function HandlebarsEnvironment(helpers, partials, decorators) {
[232] Fix | Delete
this.helpers = helpers || {};
[233] Fix | Delete
this.partials = partials || {};
[234] Fix | Delete
this.decorators = decorators || {};
[235] Fix | Delete
[236] Fix | Delete
_helpers.registerDefaultHelpers(this);
[237] Fix | Delete
_decorators.registerDefaultDecorators(this);
[238] Fix | Delete
}
[239] Fix | Delete
[240] Fix | Delete
HandlebarsEnvironment.prototype = {
[241] Fix | Delete
constructor: HandlebarsEnvironment,
[242] Fix | Delete
[243] Fix | Delete
logger: _logger2['default'],
[244] Fix | Delete
log: _logger2['default'].log,
[245] Fix | Delete
[246] Fix | Delete
registerHelper: function registerHelper(name, fn) {
[247] Fix | Delete
if (_utils.toString.call(name) === objectType) {
[248] Fix | Delete
if (fn) {
[249] Fix | Delete
throw new _exception2['default']('Arg not supported with multiple helpers');
[250] Fix | Delete
}
[251] Fix | Delete
_utils.extend(this.helpers, name);
[252] Fix | Delete
} else {
[253] Fix | Delete
this.helpers[name] = fn;
[254] Fix | Delete
}
[255] Fix | Delete
},
[256] Fix | Delete
unregisterHelper: function unregisterHelper(name) {
[257] Fix | Delete
delete this.helpers[name];
[258] Fix | Delete
},
[259] Fix | Delete
[260] Fix | Delete
registerPartial: function registerPartial(name, partial) {
[261] Fix | Delete
if (_utils.toString.call(name) === objectType) {
[262] Fix | Delete
_utils.extend(this.partials, name);
[263] Fix | Delete
} else {
[264] Fix | Delete
if (typeof partial === 'undefined') {
[265] Fix | Delete
throw new _exception2['default']('Attempting to register a partial called "' + name + '" as undefined');
[266] Fix | Delete
}
[267] Fix | Delete
this.partials[name] = partial;
[268] Fix | Delete
}
[269] Fix | Delete
},
[270] Fix | Delete
unregisterPartial: function unregisterPartial(name) {
[271] Fix | Delete
delete this.partials[name];
[272] Fix | Delete
},
[273] Fix | Delete
[274] Fix | Delete
registerDecorator: function registerDecorator(name, fn) {
[275] Fix | Delete
if (_utils.toString.call(name) === objectType) {
[276] Fix | Delete
if (fn) {
[277] Fix | Delete
throw new _exception2['default']('Arg not supported with multiple decorators');
[278] Fix | Delete
}
[279] Fix | Delete
_utils.extend(this.decorators, name);
[280] Fix | Delete
} else {
[281] Fix | Delete
this.decorators[name] = fn;
[282] Fix | Delete
}
[283] Fix | Delete
},
[284] Fix | Delete
unregisterDecorator: function unregisterDecorator(name) {
[285] Fix | Delete
delete this.decorators[name];
[286] Fix | Delete
},
[287] Fix | Delete
/**
[288] Fix | Delete
* Reset the memory of illegal property accesses that have already been logged.
[289] Fix | Delete
* @deprecated should only be used in handlebars test-cases
[290] Fix | Delete
*/
[291] Fix | Delete
resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {
[292] Fix | Delete
_internalProtoAccess.resetLoggedProperties();
[293] Fix | Delete
}
[294] Fix | Delete
};
[295] Fix | Delete
[296] Fix | Delete
var log = _logger2['default'].log;
[297] Fix | Delete
[298] Fix | Delete
exports.log = log;
[299] Fix | Delete
exports.createFrame = _utils.createFrame;
[300] Fix | Delete
exports.logger = _logger2['default'];
[301] Fix | Delete
[302] Fix | Delete
/***/ }),
[303] Fix | Delete
/* 4 */
[304] Fix | Delete
/***/ (function(module, exports) {
[305] Fix | Delete
[306] Fix | Delete
'use strict';
[307] Fix | Delete
[308] Fix | Delete
exports.__esModule = true;
[309] Fix | Delete
exports.extend = extend;
[310] Fix | Delete
exports.indexOf = indexOf;
[311] Fix | Delete
exports.escapeExpression = escapeExpression;
[312] Fix | Delete
exports.isEmpty = isEmpty;
[313] Fix | Delete
exports.createFrame = createFrame;
[314] Fix | Delete
exports.blockParams = blockParams;
[315] Fix | Delete
exports.appendContextPath = appendContextPath;
[316] Fix | Delete
var escape = {
[317] Fix | Delete
'&': '&amp;',
[318] Fix | Delete
'<': '&lt;',
[319] Fix | Delete
'>': '&gt;',
[320] Fix | Delete
'"': '&quot;',
[321] Fix | Delete
"'": '&#x27;',
[322] Fix | Delete
'`': '&#x60;',
[323] Fix | Delete
'=': '&#x3D;'
[324] Fix | Delete
};
[325] Fix | Delete
[326] Fix | Delete
var badChars = /[&<>"'`=]/g,
[327] Fix | Delete
possible = /[&<>"'`=]/;
[328] Fix | Delete
[329] Fix | Delete
function escapeChar(chr) {
[330] Fix | Delete
return escape[chr];
[331] Fix | Delete
}
[332] Fix | Delete
[333] Fix | Delete
function extend(obj /* , ...source */) {
[334] Fix | Delete
for (var i = 1; i < arguments.length; i++) {
[335] Fix | Delete
for (var key in arguments[i]) {
[336] Fix | Delete
if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {
[337] Fix | Delete
obj[key] = arguments[i][key];
[338] Fix | Delete
}
[339] Fix | Delete
}
[340] Fix | Delete
}
[341] Fix | Delete
[342] Fix | Delete
return obj;
[343] Fix | Delete
}
[344] Fix | Delete
[345] Fix | Delete
var toString = Object.prototype.toString;
[346] Fix | Delete
[347] Fix | Delete
exports.toString = toString;
[348] Fix | Delete
// Sourced from lodash
[349] Fix | Delete
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt
[350] Fix | Delete
/* eslint-disable func-style */
[351] Fix | Delete
var isFunction = function isFunction(value) {
[352] Fix | Delete
return typeof value === 'function';
[353] Fix | Delete
};
[354] Fix | Delete
// fallback for older versions of Chrome and Safari
[355] Fix | Delete
/* istanbul ignore next */
[356] Fix | Delete
if (isFunction(/x/)) {
[357] Fix | Delete
exports.isFunction = isFunction = function (value) {
[358] Fix | Delete
return typeof value === 'function' && toString.call(value) === '[object Function]';
[359] Fix | Delete
};
[360] Fix | Delete
}
[361] Fix | Delete
exports.isFunction = isFunction;
[362] Fix | Delete
[363] Fix | Delete
/* eslint-enable func-style */
[364] Fix | Delete
[365] Fix | Delete
/* istanbul ignore next */
[366] Fix | Delete
var isArray = Array.isArray || function (value) {
[367] Fix | Delete
return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;
[368] Fix | Delete
};
[369] Fix | Delete
[370] Fix | Delete
exports.isArray = isArray;
[371] Fix | Delete
// Older IE versions do not directly support indexOf so we must implement our own, sadly.
[372] Fix | Delete
[373] Fix | Delete
function indexOf(array, value) {
[374] Fix | Delete
for (var i = 0, len = array.length; i < len; i++) {
[375] Fix | Delete
if (array[i] === value) {
[376] Fix | Delete
return i;
[377] Fix | Delete
}
[378] Fix | Delete
}
[379] Fix | Delete
return -1;
[380] Fix | Delete
}
[381] Fix | Delete
[382] Fix | Delete
function escapeExpression(string) {
[383] Fix | Delete
if (typeof string !== 'string') {
[384] Fix | Delete
// don't escape SafeStrings, since they're already safe
[385] Fix | Delete
if (string && string.toHTML) {
[386] Fix | Delete
return string.toHTML();
[387] Fix | Delete
} else if (string == null) {
[388] Fix | Delete
return '';
[389] Fix | Delete
} else if (!string) {
[390] Fix | Delete
return string + '';
[391] Fix | Delete
}
[392] Fix | Delete
[393] Fix | Delete
// Force a string conversion as this will be done by the append regardless and
[394] Fix | Delete
// the regex test will do this transparently behind the scenes, causing issues if
[395] Fix | Delete
// an object's to string has escaped characters in it.
[396] Fix | Delete
string = '' + string;
[397] Fix | Delete
}
[398] Fix | Delete
[399] Fix | Delete
if (!possible.test(string)) {
[400] Fix | Delete
return string;
[401] Fix | Delete
}
[402] Fix | Delete
return string.replace(badChars, escapeChar);
[403] Fix | Delete
}
[404] Fix | Delete
[405] Fix | Delete
function isEmpty(value) {
[406] Fix | Delete
if (!value && value !== 0) {
[407] Fix | Delete
return true;
[408] Fix | Delete
} else if (isArray(value) && value.length === 0) {
[409] Fix | Delete
return true;
[410] Fix | Delete
} else {
[411] Fix | Delete
return false;
[412] Fix | Delete
}
[413] Fix | Delete
}
[414] Fix | Delete
[415] Fix | Delete
function createFrame(object) {
[416] Fix | Delete
var frame = extend({}, object);
[417] Fix | Delete
frame._parent = object;
[418] Fix | Delete
return frame;
[419] Fix | Delete
}
[420] Fix | Delete
[421] Fix | Delete
function blockParams(params, ids) {
[422] Fix | Delete
params.path = ids;
[423] Fix | Delete
return params;
[424] Fix | Delete
}
[425] Fix | Delete
[426] Fix | Delete
function appendContextPath(contextPath, id) {
[427] Fix | Delete
return (contextPath ? contextPath + '.' : '') + id;
[428] Fix | Delete
}
[429] Fix | Delete
[430] Fix | Delete
/***/ }),
[431] Fix | Delete
/* 5 */
[432] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[433] Fix | Delete
[434] Fix | Delete
'use strict';
[435] Fix | Delete
[436] Fix | Delete
var _Object$defineProperty = __webpack_require__(6)['default'];
[437] Fix | Delete
[438] Fix | Delete
exports.__esModule = true;
[439] Fix | Delete
var errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack'];
[440] Fix | Delete
[441] Fix | Delete
function Exception(message, node) {
[442] Fix | Delete
var loc = node && node.loc,
[443] Fix | Delete
line = undefined,
[444] Fix | Delete
endLineNumber = undefined,
[445] Fix | Delete
column = undefined,
[446] Fix | Delete
endColumn = undefined;
[447] Fix | Delete
[448] Fix | Delete
if (loc) {
[449] Fix | Delete
line = loc.start.line;
[450] Fix | Delete
endLineNumber = loc.end.line;
[451] Fix | Delete
column = loc.start.column;
[452] Fix | Delete
endColumn = loc.end.column;
[453] Fix | Delete
[454] Fix | Delete
message += ' - ' + line + ':' + column;
[455] Fix | Delete
}
[456] Fix | Delete
[457] Fix | Delete
var tmp = Error.prototype.constructor.call(this, message);
[458] Fix | Delete
[459] Fix | Delete
// Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
[460] Fix | Delete
for (var idx = 0; idx < errorProps.length; idx++) {
[461] Fix | Delete
this[errorProps[idx]] = tmp[errorProps[idx]];
[462] Fix | Delete
}
[463] Fix | Delete
[464] Fix | Delete
/* istanbul ignore else */
[465] Fix | Delete
if (Error.captureStackTrace) {
[466] Fix | Delete
Error.captureStackTrace(this, Exception);
[467] Fix | Delete
}
[468] Fix | Delete
[469] Fix | Delete
try {
[470] Fix | Delete
if (loc) {
[471] Fix | Delete
this.lineNumber = line;
[472] Fix | Delete
this.endLineNumber = endLineNumber;
[473] Fix | Delete
[474] Fix | Delete
// Work around issue under safari where we can't directly set the column value
[475] Fix | Delete
/* istanbul ignore next */
[476] Fix | Delete
if (_Object$defineProperty) {
[477] Fix | Delete
Object.defineProperty(this, 'column', {
[478] Fix | Delete
value: column,
[479] Fix | Delete
enumerable: true
[480] Fix | Delete
});
[481] Fix | Delete
Object.defineProperty(this, 'endColumn', {
[482] Fix | Delete
value: endColumn,
[483] Fix | Delete
enumerable: true
[484] Fix | Delete
});
[485] Fix | Delete
} else {
[486] Fix | Delete
this.column = column;
[487] Fix | Delete
this.endColumn = endColumn;
[488] Fix | Delete
}
[489] Fix | Delete
}
[490] Fix | Delete
} catch (nop) {
[491] Fix | Delete
/* Ignore if the browser is very particular */
[492] Fix | Delete
}
[493] Fix | Delete
}
[494] Fix | Delete
[495] Fix | Delete
Exception.prototype = new Error();
[496] Fix | Delete
[497] Fix | Delete
exports['default'] = Exception;
[498] Fix | Delete
module.exports = exports['default'];
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function