Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Dependency util@0.10.3 infinite loop issue on deprecate function #1

Open
mkastner opened this issue Aug 6, 2016 · 3 comments
Open

Comments

@mkastner
Copy link

mkastner commented Aug 6, 2016

util.js runs into an ugly infinite loop, if the deprecate function (line 44) is being called. Check out line 47 of util.js where exports.deprecate calls itself.

It's already mentioned on the original author's repo, but there's no fix yet.

It ran into the problem, when running tests on the mongoose browser version which has a deprecation warning concerning its promise implementation. It took me a while to trace it back.

@guybedford
Copy link
Member

Thanks for posting. Do you mean the function at https://github.com/jspm/nodelibs-util/blob/master/util.js#L72 then?

Can you point to the issue on the original repo?

@mkastner
Copy link
Author

mkastner commented Aug 8, 2016

Yes, that's the one I mean. Sorry for my sloppyness. Here's the link to the original repo:

https://github.com/defunctzombie/node-util/blob/master/util.js#L65

@guybedford
Copy link
Member

Let's track movement on browserify/node-util#11 here then.

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

2 participants