mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Disable linter warning for Error prototype method
This commit is contained in:
@@ -168,14 +168,14 @@ Object.defineProperty(Error, 'prepareStackTrace', {
|
||||
})
|
||||
|
||||
// Enable Grim to access the raw stack without reassigning Error.prepareStackTrace
|
||||
Error.prototype.getRawStack = function () {
|
||||
Error.prototype.getRawStack = function () { // eslint-disable-line no-extend-native
|
||||
prepareStackTrace = getRawStack
|
||||
var result = this.stack
|
||||
prepareStackTrace = sourceMapPrepareStackTrace
|
||||
return result
|
||||
}
|
||||
|
||||
function getRawStack (error, stack) {
|
||||
function getRawStack (_, stack) {
|
||||
return stack
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user