Skip to content
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

Maximum call stack size exceeded #30

Open
ifozest opened this issue Mar 22, 2019 · 1 comment
Open

Maximum call stack size exceeded #30

ifozest opened this issue Mar 22, 2019 · 1 comment

Comments

@ifozest
Copy link

ifozest commented Mar 22, 2019

RangeError: Maximum call stack size exceeded

var hamt = require("hamt")


var map = hamt.empty

map = map.set(3947110700580, {});
map = map.set(4861938734628, {});

runkit link with stacktrace https://runkit.com/ifozest/5c94a4ff57f9d100115f3089

@mattbierner
Copy link
Owner

Are these numbers (3947110700580 and 4861938734628 ) supposed to be the keys or the raw hash value? set normally takes the keys as strings, so you may weird results like this if you try passing in a numbers directly. I think you either want to convert these numbers to strings, or use the .setHash method instead

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

No branches or pull requests

2 participants