Skip to content

Commit

Permalink
Fix @sentry/browser
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Aug 5, 2020
1 parent d19f2c2 commit ecd0d54
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
5 changes: 2 additions & 3 deletions packages/browser/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ export function wrap(
},
});
}
} catch (_oO) {
/*no-empty*/
}
// eslint-disable-next-line no-empty
} catch (_oO) {}

return sentryWrapped;
}
Expand Down
1 change: 1 addition & 0 deletions packages/browser/test/integration/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function supportsOnunhandledRejection() {
}

function isBelowIE11() {
// eslint-disable-next-line spaced-comment
return /*@cc_on!@*/ false == !false;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/browser/test/integration/polyfills/fetch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/* !
* @overview whatwg-fetch - an implementation of Fetch API.
* @copyright Copyright (c) 2014-2016 GitHub, Inc.
* @license Licensed under MIT license
Expand Down
8 changes: 4 additions & 4 deletions packages/browser/test/integration/polyfills/promise.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/* !
* @overview es6-promise - an implementation of Promise API.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
Expand Down Expand Up @@ -222,7 +222,7 @@
`value`
*/
function resolve$1(object) {
/*jshint validthis:true */
/* jshint validthis:true */
var Constructor = this;

if (
Expand Down Expand Up @@ -722,7 +722,7 @@
promise to settle.
*/
function race(entries) {
/*jshint validthis:true */
/* jshint validthis:true */
var Constructor = this;

if (!isArray(entries)) {
Expand Down Expand Up @@ -774,7 +774,7 @@
@return {Promise} a promise rejected with the given `reason`.
*/
function reject$1(reason) {
/*jshint validthis:true */
/* jshint validthis:true */
var Constructor = this;
var promise = new Constructor(noop);
reject(promise, reason);
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/test/integration/suites/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (IS_LOADER) {
setTimeout(function() {
Sentry.captureMessage("test");
});
undefinedMethod(); //trigger error
undefinedMethod(); // trigger error
}).then(function(summary) {
assert.ok(summary.events[0].breadcrumbs);
assert.lengthOf(summary.events[0].breadcrumbs, 1);
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"lint:eslint:json": "eslint . --format json | tee lint-results.json",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "lint:eslint --fix"
"fix:eslint": "eslint . --format stylish --fix"
},
"sideEffects": false
}

0 comments on commit ecd0d54

Please sign in to comment.