提交 26f8fb86 编写于 作者: P Prathamesh Sonpatki

Add positional information to eval call so that this information will

be used in printing correct location where the exception occurred.
Closes #12885

- Without this the location of exception is always the line on which
  'eval' is called
- But if the exception occurs in a gem outside of Rails, then that
  location is not printed in stacktrace
上级 da800614
......@@ -50,5 +50,5 @@
$0 = code_or_file
Kernel.load code_or_file
else
eval(code_or_file)
eval(code_or_file, binding, __FILE__, __LINE__)
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册