Skip to content

Commit 6605643

Browse files
committed
Apply protobuf workaround only on jruby
1 parent 91cbebe commit 6605643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sass/compiler/host/protofier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def from_proto(proto)
112112
when :number
113113
Number.from_proto(obj)
114114
when :color
115-
obj.to_s # TODO: https://github.com/protocolbuffers/protobuf/issues/18807
115+
obj.to_s if RUBY_ENGINE == 'jruby' # TODO: https://github.com/protocolbuffers/protobuf/issues/18807
116116
Sass::Value::Color.send(
117117
:for_space,
118118
obj.space,

0 commit comments

Comments
 (0)