Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
move to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Apr 23, 2024
1 parent af6e5a5 commit 005e51b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,10 @@ function doSomethingElse() {
`import * as Sentry from '@sentry/browser';
import { makeMain, Hub } from '@sentry/browser';
function doSomething() {
// TODO(sentry): Use \`new Scope()\` instead - see https://github.com/getsentry/sentry-javascript/blob/develop/docs/v8-initializing.md
const hub = new Hub();
// TODO(sentry): Use \`setCurrentClient()\` instead - see https://github.com/getsentry/sentry-javascript/blob/develop/docs/v8-initializing.md
makeMain(hub);
}
// TODO(sentry): Use \`new Scope()\` instead - see https://github.com/getsentry/sentry-javascript/blob/develop/docs/v8-initializing.md
const hub = new Hub();
// TODO(sentry): Use \`setCurrentClient()\` instead - see https://github.com/getsentry/sentry-javascript/blob/develop/docs/v8-initializing.md
makeMain(hub);
function doSomethingElse() {
// TODO(sentry): Use \`new Scope()\` instead - see https://github.com/getsentry/sentry-javascript/blob/develop/docs/v8-initializing.md
Expand Down
6 changes: 2 additions & 4 deletions test-fixtures/addMigrationComments/hub.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import * as Sentry from '@sentry/browser';
import { makeMain, Hub } from '@sentry/browser';

function doSomething() {
const hub = new Hub();
makeMain(hub);
}
const hub = new Hub();
makeMain(hub);

function doSomethingElse() {
const hub = new Sentry.Hub();
Expand Down

0 comments on commit 005e51b

Please sign in to comment.