Skip to content

Commit 60cc362

Browse files
andrykonchineregon
authored andcommitted
[GR-45621] Fix Coverage.supported?
PullRequest: truffleruby/4133
2 parents 8f98aae + d3c3a55 commit 60cc362

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Compatibility:
3636
* Add `Integer#ceildiv` method (#3039, @simonlevasseur, @nirvdrum).
3737
* Implement `Class#attached_object` method (#3039, @andrykonchin).
3838
* Fix `ENV#{clone,dup}` and raise `TypeError` (#3039, @andrykonchin).
39+
* Fix `Coverage.supported?` and raise `TypeError` if argument is not Symbol (#3039, @andrykonchin).
3940

4041
Performance:
4142

lib/truffle/coverage.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
module Coverage
1313
def self.supported?(mode)
14+
Truffle::Type.rb_check_type(mode, Symbol)
1415
mode == :lines
1516
end
1617

spec/tags/core/string/to_c_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

spec/tags/library/coverage/supported_tags.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)