@@ -37,7 +37,7 @@ def to_proto(obj)
3737 when Sass ::Value ::ArgumentList
3838 EmbeddedProtocol ::Value . new (
3939 argument_list : EmbeddedProtocol ::Value ::ArgumentList . new (
40- id : obj . instance_eval { @id } ,
40+ id : obj . instance_variable_get ( : @id) ,
4141 contents : obj . to_a . map { |element | to_proto ( element ) } ,
4242 keywords : obj . keywords . each_with_object ( { } ) { |( key , value ) , hash | hash [ key . to_s ] = to_proto ( value ) } ,
4343 separator : ListSeparator . to_proto ( obj . separator )
@@ -63,10 +63,10 @@ def to_proto(obj)
6363 )
6464 )
6565 when Sass ::Value ::Function
66- if obj . instance_eval { @id }
66+ if obj . instance_variable_defined? ( : @id)
6767 EmbeddedProtocol ::Value . new (
6868 compiler_function : EmbeddedProtocol ::Value ::CompilerFunction . new (
69- id : obj . instance_eval { @id }
69+ id : obj . instance_variable_get ( : @id)
7070 )
7171 )
7272 else
@@ -80,7 +80,7 @@ def to_proto(obj)
8080 when Sass ::Value ::Mixin
8181 EmbeddedProtocol ::Value . new (
8282 compiler_mixin : EmbeddedProtocol ::Value ::CompilerMixin . new (
83- id : obj . instance_eval { @id }
83+ id : obj . instance_variable_get ( : @id)
8484 )
8585 )
8686 when Sass ::Value ::Calculation
@@ -148,14 +148,14 @@ def from_proto(proto)
148148 end
149149 )
150150 when :compiler_function
151- Sass ::Value ::Function . new ( nil ) . instance_eval do
151+ Sass ::Value ::Function . allocate . instance_eval do
152152 @id = obj . id
153153 self
154154 end
155155 when :host_function
156156 raise Sass ::ScriptError , 'The compiler may not send Value.host_function to host'
157157 when :compiler_mixin
158- Sass ::Value ::Mixin . send ( :new ) . instance_eval do
158+ Sass ::Value ::Mixin . allocate . instance_eval do
159159 @id = obj . id
160160 self
161161 end
0 commit comments