Skip to content

Commit e9208bd

Browse files
Add comment
Co-authored-by: Hendrik Liebau <[email protected]>
1 parent 0682cde commit e9208bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/shared/ReactSerializationErrors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export function isSimpleObject(object: any): boolean {
9292
export function objectName(object: mixed): string {
9393
// $FlowFixMe[method-unbinding]
9494
const name = Object.prototype.toString.call(object);
95+
// Extract 'Object' from '[object Object]':
9596
return name.slice(8, name.length - 1);
9697
}
9798

0 commit comments

Comments
 (0)