Open soufianos01 opened 2 years ago
@soufianos01 thanks for the report. I wonder if there is some recent regex feature that our version of Acorn doesn't support and we need to update. Or maybe there is an issue with Babel.
One question. It looks like you're trying to analyze a node.js project. Have you tried NodeProf?
https://www.dag.inf.usi.ch/software/nodeprof
It supports writing analyses in the same style as Jalangi, and it should be generally much more robust for Node.js programs due to its GraalVM-based approach. If I were doing a new dynamic analysis for Node.js these days, I would try NodeProf since it supports modern JS constructs without needing Babel.
Hi, while trying to test jalangi on a code that connects to a mongodb database, I get the following error:
SyntaxError: Invalid regular expression: /^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/: Invalid group (12:21)
I created a sample project to reproduce the error, which can be found here: https://github.com/soufianos01/sampleProjects-mongodb
I use webpack and babel to transpile the code to ES5, and I feed jalangi with a simple analysis to be found in
analysis2.js
in the root of the project. Running the bundled file is working, but running the jalangi analysis on it results in the following error: