commit
a05330b2e5
@ -1,7 +1,8 @@
|
|||||||
var code = multiline([
|
var code = multiline([
|
||||||
"(function() {",
|
"(function() {",
|
||||||
|
" var bar = 'lol';",
|
||||||
" function foo(b){",
|
" function foo(b){",
|
||||||
' b === "lol";',
|
" b === bar;",
|
||||||
" foo(b);",
|
" foo(b);",
|
||||||
" }",
|
" }",
|
||||||
"})();",
|
"})();",
|
||||||
|
|||||||
@ -313,7 +313,7 @@ export function _guessExecutionStatusRelativeToDifferentFunctions(targetFuncPare
|
|||||||
for (let path of referencePaths) {
|
for (let path of referencePaths) {
|
||||||
// if a reference is a child of the function we're checking against then we can
|
// if a reference is a child of the function we're checking against then we can
|
||||||
// safelty ignore it
|
// safelty ignore it
|
||||||
let childOfFunction = !!path.find(path => path === targetFuncPath);
|
let childOfFunction = !!path.find(path => path.node === targetFuncPath.node);
|
||||||
if (childOfFunction) continue;
|
if (childOfFunction) continue;
|
||||||
|
|
||||||
let status = this._guessExecutionStatusRelativeTo(path);
|
let status = this._guessExecutionStatusRelativeTo(path);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user