We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2173a1 commit 8941f2dCopy full SHA for 8941f2d
lib/sass/compiler/host/function_registry.rb
@@ -10,11 +10,10 @@ class FunctionRegistry
10
attr_reader :compile_context, :global_functions
11
12
def initialize(functions, alert_color:)
13
- functions = functions.transform_keys(&:to_s)
14
-
15
- @compile_context = Object.new
16
- @global_functions = functions.keys
+ @compile_context = Object.new.freeze
+ @global_functions = functions.keys.map(&:to_s)
17
@functions_by_name = functions.transform_keys do |signature|
+ signature = signature.to_s
18
index = signature.index('(')
19
if index
20
signature.slice(0, index)
0 commit comments