-
Notifications
You must be signed in to change notification settings - Fork 184
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
collections break crypto #196
Comments
@codebling Thanks will look into #173 and #189 ASAP. |
Works for me @codebling have you installed collections@5.1.2 ? package.json source: {
"name": "collections-test",
"main": "array.js",
"dependencies": {
"collections": "^5.1.2"
}
} array.js source: var Map = require('collections/map');
console.log(require('crypto').getHashes().length); Results: node array.js
46 Some other tests
Bug is on node v8 not v4. |
Thanks for looking at this. Did not realise it was not broken on some node versions. |
Any progress with this? |
@rachel-chocron Based on comments in all of the issues listed at the top, the root cause of all of the issues is the direct modification of the global array type by Collections. If I recall correctly, this was fixed in the In this specific issue, hthetiot showed that it does actually work in some legacy versions of node, but later ones all seem to be broken. Depending on which features of Collections you use, there may be acceptable substitutes available. |
Opening this since most of related issues #36 #70 #94 #95 #116 #139 #145 #162 #165 #169 #178 #182 #185 #197 #215 #220 have been closed and there needs to be some visibility on this.
The shims are still causing issues in collections.
I see that PRs #95 #173 and #189 #212 are still open, the merge of one or both of those should theoretically resolve this issue. (Closed PRs #94 #116 are also about the same issue)
Try this simple test case.
The text was updated successfully, but these errors were encountered: