File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -75,14 +75,12 @@ def write_heap_snapshot(file_or_io)
7575
7676 if String === file_or_io
7777 f = File . open ( file_or_io , "w" )
78- implicit = true
78+ implicit = true
7979 else
8080 f = file_or_io
8181 end
8282
83- if !( File === f )
84- raise ArgumentError , "file_or_io"
85- end
83+ raise ArgumentError , "file_or_io" unless File === f
8684
8785 f . write ( heap_snapshot ( ) )
8886 ensure
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ class MiniRacerTest < Minitest::Test
1111 # --stress_snapshot works around a bogus debug assert in V8
1212 # that terminates the process with the following error:
1313 #
14- # Fatal error in ../deps/v8/src/heap/read-only-spaces.cc, line 70
15- # Check failed: read_only_blob_checksum_ == snapshot_checksum (<unprintable> vs. 1099685679).
14+ # Fatal error in ../deps/v8/src/heap/read-only-spaces.cc, line 70
15+ # Check failed: read_only_blob_checksum_ == snapshot_checksum (<unprintable> vs. 1099685679).
1616 MiniRacer ::Platform . set_flags! :stress_snapshot
1717
1818 def test_locale_mx
You can’t perform that action at this time.
0 commit comments