Closed
Description
Code like that should be valid and not detected as unsafe
var root = freeGlobal || freeSelf || Function('return this')();
import { runASTAnalysis } from "@nodesecure/js-x-ray";
const result = runASTAnalysis(`
var root = freeGlobal || freeSelf || Function('return this')();
`);
console.log(result);
The following code should return no warnings