Skip to content

Commit 50b4b33

Browse files
committed
Add documentation
1 parent 17af3a0 commit 50b4b33

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
@@ -518,7 +518,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
518518
// event.spans[].data may contain circular/dangerous data so we need to normalize it
519519
if (event.spans) {
520520
normalized.spans = event.spans.map(span => {
521-
// We cannot use the spread operator on span here because that overwrites the `toJSON` method
521+
// We cannot use the spread operator here because `toJSON` on `span` is non-enumerable
522522
if (span.data) {
523523
span.data = normalize(span.data, depth, maxBreadth);
524524
}

0 commit comments

Comments
 (0)