Skip to content

Commit

Permalink
fix an incorrect syntax (rubyjs#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl authored Mar 22, 2022
1 parent 4414ea4 commit 7419fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_racer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def write_heap_snapshot(file_or_io)
end

if !(File === f)
raise ArgumentError("file_or_io")
raise ArgumentError, "file_or_io"
end

write_heap_snapshot_unsafe(f)
Expand Down

0 comments on commit 7419fd1

Please sign in to comment.