Comments (3)
It looks like longjohn's format_stack
function never gets called, leaving the stack in a bad state. As for why its not getting called, this code (from prepareStackTrace
) :
if error.__previous__?
previous_stack = error.__previous__.stack
if previous_stack?.length > 0
error.__cached_trace__.push(create_callsite(exports.empty_frame))
error.__cached_trace__.push(previous_stack...)
fails to take into account the case when previous_stack
is a string, not an array. The failure leads to a TypeError: Function.prototype.apply: Arguments list has wrong type
exception, preventing longjohn from running format_stack
.
I was going to make a pull request with the fix, but right out of the box there are 5 test failures, so I am hesitant to touch anything at this point. If some of these errors get resolved, then I will make a request.
from longjohn.
Any news on this issue (or the PR?). I'm having the same problem and I'm sure I'm not the only one ;) It would be great if we could manage to get a PR (without failing tests ;)) merged into the project.
from longjohn.
Fixed by PR.
from longjohn.
Related Issues (20)
- Formatting lost on io.js
- 0.2.5 Invalid array length HOT 5
- Invalid Array length error with 0.2.6 HOT 2
- Huge CPU usage HOT 10
- Longjohn breaking jasmine tests (possibly because of changed exception handling?)
- Issues with gunzip HOT 3
- Asynchronously / lazily accessed err.stack is wrong
- play nicely with coffeescript source maps HOT 4
- Longjohn causes TLS error handler to be triggered
- Mongo database connection timeout with 0.2.10 HOT 1
- util.isFunction not available in older versions of Node
- errors with Timer error
- EventEmitter.listeners() returns different results in case longlohn is used
- longjohn is not compatible to other modules using a similar wrapping of EventEmitter HOT 1
- Can LongJohn be disabled after having been required?
- Using with TypeScript? HOT 1
- Doesn't work with promises HOT 5
- [question] Advantages over `Error.stackTraceLimit` HOT 1
- .once only working if there is an .on call for the same event type HOT 1
- Is it possible to use this with AWS Lambda functions ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from longjohn.