You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
util.deprecate causes a stack overflow in browser #11
When util.js is bundled with browserify and run in browser, util.deprecate falls into an infinite loop here because process is not namespaced to global - it's only global within the context of the browserify bundle.
I can see where this would fall to @substack considering this deviates from the node environment, but I can also see why they would not want to set window.process from within a bundle. Checking typeof process rather than isUndefined(global.process) would be a simple solution.
Regardless, the --no-deprecation check should occur first to provide a way to avoid this.
Activity
fix issue browserify#11
fix issue browserify#11
Merge pull request #12 from bernardmcmanus/fix-deprecate-in-browser
bernardmcmanus commentedon Nov 3, 2018
Resolved by #12