Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discovery] Discrepancy between query results in joern shell and tp-framework #34

Open
SoheilKhodayari opened this issue Feb 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@SoheilKhodayari
Copy link
Member

When running the discovery rule for JS pattern 76 in joern console, all compulsory fields including the lineNumber are included in the output. However, when running the same query with the tp-framework, the query results are different, e.g., lineNumber is missing.

joern console output

Screenshot 2023-02-03 at 16 46 39

tp-framework output:

Screenshot 2023-02-03 at 16 50 26

@SoheilKhodayari SoheilKhodayari added the bug Something isn't working label Feb 3, 2023
@pr0me
Copy link
Contributor

pr0me commented Feb 4, 2023

Oh, that's not nice.
Are you on the refactoring branch?

First guess is, that the standalone ./js2cpg behaves differently than the (relatively new) jssrc default frontend in joern.
Not sure about js2cpg's dependencies.

@SoheilKhodayari
Copy link
Member Author

Are you on the refactoring branch?

Yes, I am testing that one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants