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

uni 变量是个 Proxy,但是对其调用 toStringTag 会报错 TypeError: Cannot convert a Symbol value to a string #5295

Open
qkang07 opened this issue Jan 22, 2025 · 0 comments

Comments

@qkang07
Copy link

qkang07 commented Jan 22, 2025

Image

Proxy 内部用正则测试传入的 key,当传入的是 Symbol 就会报错

复现步骤:
Object.prototype.toString.call(uni)
或者
uni[Symbol.toStringTag]

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

No branches or pull requests

1 participant