Giter VIP home page Giter VIP logo

Comments (4)

samuela avatar samuela commented on August 23, 2024 1

@lahma Yes, I ended up finding out that a dependency had a dependency on esprima but pinned to an older version. That seems to have been the root cause!

from esprima-dotnet.

sebastienros avatar sebastienros commented on August 23, 2024

async functions are not supported yet. Esprima-dotnet only handles es6 syntax for now.

from esprima-dotnet.

samuela avatar samuela commented on August 23, 2024

Has there been any update on this? I'm still seeing this error.

from esprima-dotnet.

lahma avatar lahma commented on August 23, 2024

@samuela works on my machine:

[Fact]
public void AsyncFunction()
{
    var parser = new JavaScriptParser("a = async function() {}");
    var script = parser.ParseScript();
    var functionExpression = (FunctionExpression) ((AssignmentExpression) ((ExpressionStatement) script.Body[0]).Expression).Right;

    Assert.True(functionExpression.Async);
}

from esprima-dotnet.

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.