aboutsummaryrefslogtreecommitdiffstats
path: root/lib/prism/ffi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prism/ffi.rb')
-rw-r--r--lib/prism/ffi.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/prism/ffi.rb b/lib/prism/ffi.rb
index cc84d00f14..931e277ef5 100644
--- a/lib/prism/ffi.rb
+++ b/lib/prism/ffi.rb
@@ -231,6 +231,7 @@ module Prism
loader.load_header
loader.load_force_encoding
+ loader.load_start_line
loader.load_comments
end
end
@@ -283,7 +284,7 @@ module Prism
end
template << "L"
- values << options.fetch(:line, 0)
+ values << options.fetch(:line, 1)
template << "L"
if (encoding = options[:encoding])