code: function shouldDeoptBasedOnScope(binding, refPath) {
    if (binding.scope.path.isProgram() && refPath.scope !== binding.scope) {
      return true;
    }
    return false;
  }
docs: check if referenced in a different fn scope we can't determine if this function is called sync or async if the binding is in program scope all it's references inside a different function should be deopted