Skip to content

Conversation

@gxcsoccer
Copy link
Member

No description provided.

@mention-bot
Copy link

@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.

@gxcsoccer gxcsoccer force-pushed the fix-skip-function-regexp branch from 95a63b2 to 2a91b8c Compare May 22, 2017 15:58
@gxcsoccer gxcsoccer requested a review from coolme200 May 22, 2017 15:58
@gxcsoccer gxcsoccer force-pushed the fix-skip-function-regexp branch 2 times, most recently from c85ac6f to 054a112 Compare May 22, 2017 16:06
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)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为了性能考虑,就不在 writeObject 再去判断类型了,如果是不支持的类型通通都写成 null

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没发版本。。。

Copy link
Member

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 判断很慢。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#80

@gxcsoccer gxcsoccer force-pushed the fix-skip-function-regexp branch from 054a112 to c6d53b7 Compare May 22, 2017 16:14
@gxcsoccer gxcsoccer force-pushed the fix-skip-function-regexp branch from c6d53b7 to 9c046ec Compare May 22, 2017 16:21
@dead-horse dead-horse merged commit 3cb1159 into 1.x May 23, 2017
@dead-horse
Copy link
Member

@gxcsoccer 来发布吧

@dead-horse dead-horse deleted the fix-skip-function-regexp branch May 23, 2017 03:10
@fengmk2
Copy link
Member

fengmk2 commented Jul 25, 2017

。。。没发版本

@fengmk2
Copy link
Member

fengmk2 commented Jul 25, 2017

#79 一起发了。

@fengmk2
Copy link
Member

fengmk2 commented Jul 25, 2017

1.3.0

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

Successfully merging this pull request may close these issues.

5 participants