Skip to content

Commit 0d7750b

Browse files
committed
Fix Coverage.supported? and raise TypeError if argument is not Symbol
1 parent eedda85 commit 0d7750b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Compatibility:
3232
* Make `Coverage.start` and `Coverage.result` accept parameters (#3149, @mtortonesi, @andrykonchin).
3333
* Implement `rb_check_funcall()` (@eregon).
3434
* Implement `MatchData#{byteoffset,deconstruct,deconstruct_keys}` from Ruby 3.2 (#3039, @rwstauner).
35+
* Fix `Coverage.supported?` and raise `TypeError` if argument is not Symbol (#3039, @andrykonchin).
3536

3637
Performance:
3738

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/library/coverage/supported_tags.txt

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

0 commit comments

Comments
 (0)