diff options
| author | Koichi ITO <koic.ito@gmail.com> | 2024-02-14 02:38:35 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-13 18:15:48 +0000 |
| commit | 246005f5bd3171e12bafe820d183a7a23adc9e96 (patch) | |
| tree | 7adc003cc74d6d88dc410a034f81ccd599442902 /include/ruby/internal/encoding/transcode.h | |
| parent | a93f4e3d1a656861897a244f34f9cdbc0d7fea49 (diff) | |
[ruby/prism] Fix an error when specifying the parsing version `latest`
This PR fixes following error when using `version: latest` argument.
```console
$ ruby -rprism -e "p Prism.parse('-> { it }', version: 'latest')"
-e:1:in `parse': invalid version: latest (ArgumentError)
p Prism.parse('-> { it }', version: 'latest')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
from -e:1:in `<main>'
```
The argument `version: latest` in the added test is commented as potentially being
better replaced with `version: 3.4.0` in the future.
https://github.com/ruby/prism/commit/27b5c933cb
Diffstat (limited to 'include/ruby/internal/encoding/transcode.h')
0 files changed, 0 insertions, 0 deletions
