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?...
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 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 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...
I am very very new to Spidermonkey Parser and I have two questions. The first one is to have a good documentation (for beginners) about how to generate the AST of a Javascript file with spidermonkeyParser. And the second one is to know how to travers...
I have an application at http://prettydiff.com/prettydiff.js.  I started writing this application before interpreters got really fast and learned to prefer strict typing.  I now want to enforce strict typing in my code.  This application is too large...
I am refactoring old code to ES6 to not use Jquery:  Target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');   However, I am getting a lint error:     ERROR: Unexpected string concatenation. [prefer-template]   Prob...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.