Fix infinite recursion bug

This commit is contained in:
Sebastian McKenzie 2015-12-17 14:44:18 +00:00
parent 12fac9cadf
commit a8a58aaa07

View File

@ -235,7 +235,9 @@ export function _guessExecutionStatusRelativeTo(target) {
let targetFuncParent = target.scope.getFunctionParent();
let selfFuncParent = this.scope.getFunctionParent();
if (targetFuncParent !== selfFuncParent) {
// here we check the `node` equality as sometimes we may have different paths for the
// same node due to path thrashing
if (targetFuncParent.node !== selfFuncParent.node) {
let status = this._guessExecutionStatusRelativeToDifferentFunctions(targetFuncParent);
if (status) {
return status;