Issue #15471 has been updated by naruse (Yui NARUSE).

Backport changed from 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED to 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE

ruby_2_6 r66815 merged revision(s) 66595.

----------------------------------------
Bug #15471: -e and specified file does not kick script_compiled TracePoint event
https://bugs.ruby-lang.org/issues/15471#change-76295

* Author: ko1 (Koichi Sasada)
* Status: Closed
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* Target version: 2.7
* ruby -v: 2.7
* Backport: 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE
----------------------------------------
Of course, `ruby -e ...` or `ruby script.rb` compile given ruby script. But `script_compiled` event is not kicked.

```
$ ruby -r sample x.rb
```

We can put TracePoint in sample library but we can't get `script_compiled` event on `-e` or given `x.rb` file. It should be a bug.





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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>