Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

在使用 polyfill 的情况下, 内部方法 toString 不能正确判断对象是否可以被 JSON.stringify 转换 #2

Closed
Zhang-Wei-666 opened this issue Jun 12, 2019 · 0 comments
Assignees

Comments

@Zhang-Wei-666
Copy link
Member

if( isArray( value ) || ( isPlainObject( value ) && value.toString === toString ) ){

value.toString === toString 应当改为 value.toString === {}.toString

@Zhang-Wei-666 Zhang-Wei-666 self-assigned this Jun 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant