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

Error on 100-999 milliseconds #18

Open
kcrypto69 opened this issue Mar 19, 2021 · 0 comments
Open

Error on 100-999 milliseconds #18

kcrypto69 opened this issue Mar 19, 2021 · 0 comments

Comments

@kcrypto69
Copy link

Hello there,

Thanks for this package, I'm finding it really useful!

There appear to be an error when I try to input any millisecond value higher than 99, for example:

const outerjob = new Cronr("100 00 00 08 * * *", () => {
...
}

The error is as follows:

RangeError: Maximum call stack size exceeded
    at Token.matchToken (webpack://Cronr/./src/Token.ts?:24:15)
    at Resolver.checkIfTokenMatchsValue (webpack://Cronr/./src/Resolver.ts?:121:26)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:86:19)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:115:18)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:103:26)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:115:18)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:103:26)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:115:18)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:103:26)
    at Resolver.traverse (webpack://Cronr/./src/Resolver.ts?:115:18)

Please advise, thank you!

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

1 participant