Make dependencies.rb add a name to NameError
Add regression test for NameError#name
Merge pull request #15764 from arthurnn/dependencies_name_error

Make dependencies.rb add a name to NameError