get.copy构造器添加参数
This commit is contained in:
parent
e66d6778e0
commit
f9e44626c6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue