-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: Cannot call method "split" of undefined #1537
Labels
Comments
This was referenced Dec 5, 2019
This was referenced Feb 22, 2020
This was referenced Mar 7, 2020
This was referenced Mar 14, 2020
This was referenced Mar 31, 2020
This was referenced Apr 12, 2020
This was referenced Apr 22, 2020
This was referenced May 7, 2020
This was referenced Jun 8, 2024
This was referenced Sep 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of bluebird is the issue happening on?
Current
What platform and version? (For example Node.js 0.12 or Google Chrome 32)
Google Chrome 56.0.2924, on Windows
Did this issue happen with earlier version of bluebird?
I'd think so
I'm seeing this error very rarely, and I think there is probably something else wrong with that browser, but it's easy to fix.
The error happens in setBounds, https://github.com/petkaantonov/bluebird/blob/b7f21399816d02f979fe434585334ce901dcaf44/src/debuggability.js
firstLineError.stack or lastLineError.stack is undefined.
if (!longStackTracesIsSupported() || !firstLineError.stack || !lastLineError.stack) return;
or
var firstStackLines = (firstLineError.stack || '').split("\n");
var lastStackLines = (lastLineError.stack || '').split("\n");
should fix it.
The text was updated successfully, but these errors were encountered: