Skip to content

Commit 63973ad

Browse files
author
ono-max
committed
Show objects when a hovered expression is a specific class in Chrome
1 parent 3571a19 commit 63973ad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/debug/server_cdp.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,6 @@ def variable name, obj
906906
variable_ name, obj, 'object', description: "Hash(#{obj.size})", subtype: 'map'
907907
when String
908908
variable_ name, obj, 'string', description: obj
909-
when Class, Module, Struct, Range, Time, Method
910-
variable_ name, obj, 'object'
911909
when TrueClass, FalseClass
912910
variable_ name, obj, 'boolean'
913911
when Symbol
@@ -921,7 +919,7 @@ def variable name, obj
921919
end
922920
variable_ name, obj, 'object', description: "#{obj.inspect}\n#{bt}", subtype: 'error'
923921
else
924-
variable_ name, obj, 'undefined'
922+
variable_ name, obj, 'object'
925923
end
926924
end
927925
end

0 commit comments

Comments
 (0)