Issue #9651 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED

r42230 and r42231 were backported to ruby_2_0_0 at r45473. These changesets were required for resolv conflict.
And r45360 and r45361 were backported to ruby_2_0_0 at r45474.

----------------------------------------
Bug #9651: __dir__ returns nil in instance_eval/module_eval
https://bugs.ruby-lang.org/issues/9651#change-46005

* Author: Tomoyuki Chikanaga
* Status: Closed
* Priority: Normal
* Assignee: Shota Fukumori
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.1.1
* Backport: 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
`instance_eval`/`module_eval` 内の `__dir__` が常に `nil` を返します。
`eval` は r42103 で修正済みでしたが `instance_eval`/`module_eval` では `nil` のままだったようです。

trunk では r45360 および r45361 で修正済みです。
Backport 管理用に改めてチケット化しておきます。



-- 
https://bugs.ruby-lang.org/