Giter Club home page Giter Club logo

Comments (3)

ryanlatham avatar ryanlatham commented on September 25, 2024

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.

tvervest avatar tvervest commented on September 25, 2024

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.

mattinsler avatar mattinsler commented on September 25, 2024

Fixed by PR.

from longjohn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.