I'm used to having my compiler complain when I do something stupid like a typo on a variable name but JavaScript has a habit of letting this pass.  Are there any static analysis tools for JavaScript?...
Does anyone know if there's a good tool for analyzing JavaScript code and detecting type errors?  I know that JavaScript itself is weakly and dynamically typed, but it would be really nice if I could have a program that would verify that all my f...
I'm currently writing a JavaScript compiler in ANTLR+Java.  I've read questions here on Stack Overflow on how to proceed with the execution - and the answer is always that it would be way too hard to do a static compilation (without JIT-infor...
Is it possible to determine whether or not a javascript function is "pure", using javascript?     A function is said to be pure when it behaves in a predictable way, in the sense that for each x, the function will always return the same assoc...
i just integrated flow for the first time to check my javascript sources statically.  I am struggling with a error flow finds and i am not able to solve it on my own. Its about using es6 classes and inheritance. More specific i created some react Com...
I am looking for a way, using static analysis of two JavaScript functions, to tell if they are the same. Let me define multiple definitions of "the same".  Level 1: The functions are the same except for possible different whitespace, e.g. TAB...
I am trying to build some sort of a javascript "antivirus" that would try to catch particular function calls.   So lets say I've got some random javascript file, can I check if it doesn't use function jQuery.trim() (just for example s...
I want to get full AST ( Abstract Syntax Tree ) of a javascript code and I have decided to use V8's parser. After trying to use V8, what I realize is that V8 does not parse functions which are not executed ( dead code ). My assumption is V8 is tr...
I am working on a project which as a first step requires to find the differences between the 2 versions of a same program. Basically, I should be able to parse the Javascript code into AST (Abstract Syntax Tree) and then find the difference between t...
I am developing a tool for Firefox OS application analysis. The tool uses static code analysis for source and sink identification. Then dynamic analysis to taint data from source to sink.  I used Esprima to parse the JavaScript code and used the Estr...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.