-
Notifications
You must be signed in to change notification settings - Fork 30
fix: skip regExp & Function property #76
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
Conversation
|
@gxcsoccer, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fengmk2, @dead-horse and @shaoshuai0102 to be potential reviewers. |
95a63b2 to
2a91b8c
Compare
c85ac6f to
054a112
Compare
| proto.write = function (val) { | ||
| var type = typeof val; | ||
| if (is.nullOrUndefined(val) || is.NaN(val)) { | ||
| if (is.nullOrUndefined(val) || is.NaN(val) || is.function(val) || is.regExp(val)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为了性能考虑,就不在 writeObject 再去判断类型了,如果是不支持的类型通通都写成 null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没发版本。。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is-type-of 没有升级,导致 is.regExp 判断很慢。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
054a112 to
c6d53b7
Compare
c6d53b7 to
9c046ec
Compare
|
@gxcsoccer 来发布吧 |
|
。。。没发版本 |
|
跟 #79 一起发了。 |
|
1.3.0 |
No description provided.