get.copy构造器添加参数

This commit is contained in:
kuangthree 2024-01-07 15:02:29 +08:00
parent e66d6778e0
commit f9e44626c6
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ export class Get extends Uninstantable {
return target;
}
// @ts-ignore
else target = constructor ? new constructor() : Object.create(null);
else target = constructor ? new constructor(target) : Object.create(null);
map.set(obj, target);
if (obj instanceof Map) {