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

TypeError: this.id.shiftRightUnsigned is not a function #30

Open
Mygod opened this issue May 16, 2022 · 2 comments
Open

TypeError: this.id.shiftRightUnsigned is not a function #30

Mygod opened this issue May 16, 2022 · 2 comments

Comments

@Mygod
Copy link

Mygod commented May 16, 2022

To reproduce, run: new S2Cell(new S2CellId(-9182983676231680000))

new S2Cell(new S2CellId('-9182983676231680000')) does not trigger the error.

@vekexasia
Copy link
Owner

Hello @Mygod this is because S2CellId accepts either Long or string passing a number will cause the error.

@Mygod
Copy link
Author

Mygod commented Jun 14, 2022

Passing any other number seems to work fine though. Just this specific number triggers the error.

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