Coder Social home page Coder Social logo

Not working with generators about njstrace HOT 6 CLOSED

aa6 avatar aa6 commented on July 30, 2024
Not working with generators

from njstrace.

Comments (6)

ValYouW avatar ValYouW commented on July 30, 2024

This project is very old, I don't think it would work with ES6. I don't have time for testing, but maybe updating the "falafel" dependency could help (as it might use more recent version of esprima that understands ES6).

from njstrace.

aa6 avatar aa6 commented on July 30, 2024

I've updated falafel to 1.2.0 and just in case deleted all other versions of falafel but it doesn't seems that something has changed, it still throws an exception about an "Unexpected token (3:23)". Anyway, thanks for the module you've done, it's great. Will try my luck with debugging that falafel thing.

from njstrace.

ValYouW avatar ValYouW commented on July 30, 2024

Well, that's a progress I guess.. :)

from njstrace.

aa6 avatar aa6 commented on July 30, 2024

Wow, that was a waste of time. And all I really had to do is to change the acorn options to {ranges: true, locations: true, ecmaVersion: 6} after updating the falafel. And also to add esprima to dependencies as they drop it. I guess I'll make a pull request but still not sure if this will break something else. Anyway at least it might help you if you would ever want to update this project.

from njstrace.

ValYouW avatar ValYouW commented on July 30, 2024

@aa6 Thanks! Hmm, so you say they dropped esprima? I wonder what they use though...

from njstrace.

ValYouW avatar ValYouW commented on July 30, 2024

Should be working now after upgrading falafel

from njstrace.

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.