Skip to content

Commit febd6cd

Browse files
author
Luca Forstner
committed
Add documentation
1 parent 2ff6337 commit febd6cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
517517
// event.spans[].data may contain circular/dangerous data so we need to normalize it
518518
if (event.spans) {
519519
normalized.spans = event.spans.map(span => {
520-
// We cannot use the spread operator on span here because that overwrites the `toJSON` method
520+
// We cannot use the spread operator here because `toJSON` on `span` is non-enumerable
521521
if (span.data) {
522522
span.data = normalize(span.data, depth, maxBreadth);
523523
}

0 commit comments

Comments
 (0)