$.my.tojson exhaust stack in rear cases #25

Closed
ermouth opened this Issue Apr 29, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@ermouth
Owner

ermouth commented Apr 29, 2016

Regexps in this fn https://github.com/ermouth/jQuery.my/blob/master/Release/1.2/jquerymy-1.2.4.js#L727 may produce enormously deep recursion and exhaust js machine stack.

Minor bug, this function is never used during normal runtime.

@ermouth ermouth added the bug label Apr 29, 2016

@ermouth

This comment has been minimized.

Show comment
Hide comment
@ermouth

ermouth Apr 29, 2016

Owner

Takes place in Chrome cause V8 reflector behaves in a strange way, and this behavior seems to vary from version to version:

(new Function('a','return a')).toString() -->
"function anonymous(a
/**/) {
return a
}"

but

(function(a){return a}).toString() -->
"function (a){return a}"
Owner

ermouth commented Apr 29, 2016

Takes place in Chrome cause V8 reflector behaves in a strange way, and this behavior seems to vary from version to version:

(new Function('a','return a')).toString() -->
"function anonymous(a
/**/) {
return a
}"

but

(function(a){return a}).toString() -->
"function (a){return a}"

ermouth added a commit that referenced this issue May 12, 2016

1.2.5
Fix for #24, #25
@ermouth

This comment has been minimized.

Show comment
Hide comment
@ermouth

ermouth May 12, 2016

Owner

Fixed in 1.2.5

Owner

ermouth commented May 12, 2016

Fixed in 1.2.5

@ermouth ermouth closed this May 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment