Skip to content

Commit 14bdccc

Browse files
committed
Do not update context in scope
1 parent 68d0661 commit 14bdccc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/parse/parser.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,11 @@ function parseCSSArbitrarySubstitution(input, definitions, context) {
972972
}
973973
match = true
974974
}
975-
context = { ...context, function: { context, input } }
976975
}
977-
const substitution = parseCSSArbitrarySubstitution(new Stream(value), definitions, context)
976+
const substitution = parseCSSArbitrarySubstitution(
977+
new Stream(value),
978+
definitions,
979+
{ ...context, function: { context, input } })
978980
if (substitution instanceof SyntaxError) {
979981
return substitution
980982
}

0 commit comments

Comments
 (0)