Skip to content

Commit 28402cb

Browse files
authored
fix(core): Add lost scope tests & fix update case (#10738)
Noticed in the backport PR https://github.com/getsentry/sentry-javascript/actions/runs/7971156054/job/21760458423?pr=10737, where this failed, that we apparently lost some scope tests that used to only be in the hub package. This forwards-ports them to v8, and also fixes a case that was failing previously.
1 parent 6cc1e51 commit 28402cb

File tree

2 files changed

+394
-2
lines changed

2 files changed

+394
-2
lines changed

packages/core/src/scope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export class Scope implements ScopeInterface {
380380
if (scopeData.level) {
381381
this._level = scopeData.level;
382382
}
383-
if (scopeData.fingerprint) {
383+
if (scopeData.fingerprint.length) {
384384
this._fingerprint = scopeData.fingerprint;
385385
}
386386
if (scopeToMerge.getRequestSession()) {

0 commit comments

Comments
 (0)