Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone方法,当拷贝的对象没有原型时会报错 #62

Closed
Angel-HW opened this issue Feb 29, 2024 · 0 comments
Closed

clone方法,当拷贝的对象没有原型时会报错 #62

Angel-HW opened this issue Feb 29, 2024 · 0 comments
Labels

Comments

@Angel-HW
Copy link

可复现的链接:

问题描述与截图:

const obj = Object.create(null);
obj['a'] = 1;
const testCopy = XEUtils.clone(obj, true);

报错信息:
image

报错定位:
image
image

期望的结果:

No response

操作系统:

win11

浏览器版本:

chrome 121.0.6167.185(正式版本) (64 位)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant