mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
refactor: replace rfdc with native structuredClone
This commit is contained in:
@@ -68,10 +68,10 @@ export class LightweightProjectWithIndex {
|
||||
|
||||
return (deep ?? true) && isLightweightClass(object)
|
||||
? this.applyInheritance(object)
|
||||
: JSON.parse(JSON.stringify(object));
|
||||
: structuredClone(object);
|
||||
},
|
||||
),
|
||||
JSON.parse(JSON.stringify(classLike)),
|
||||
structuredClone(classLike),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user