diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-09-13 15:00:03 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-13 19:13:21 +0000 |
| commit | f85efc9748b193bceaefd2e94293927404ac951f (patch) | |
| tree | ff4b190b90f1611fc64909193651c9e9ca0c20c1 /lib | |
| parent | 77521afac1687602fde4046ab20f016c61089003 (diff) | |
[ruby/prism] Expose main_script in serialization API
https://github.com/ruby/prism/commit/0b527ca93f
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/prism/ffi.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/prism/ffi.rb b/lib/prism/ffi.rb index b972520be1..40a4b32621 100644 --- a/lib/prism/ffi.rb +++ b/lib/prism/ffi.rb @@ -448,6 +448,9 @@ module Prism template << "C" values << (options[:encoding] == false ? 1 : 0) + template << "C" + values << (options.fetch(:main_script, false) ? 1 : 0) + template << "L" if (scopes = options[:scopes]) values << scopes.length |
