Skip to content

Commit 15b4236

Browse files
committed
Oversight in fde9694
1 parent ac9a31f commit 15b4236

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/error.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export const INVALID_CUSTOM_PROPERTY_OVERRIDE = {
2727
export const INVALID_CUSTOM_PROPERTY_SYNTAX = {
2828
message: 'Invalid syntax',
2929
}
30+
export const INVALID_DECLARATION_SYNTAX_ERROR = {
31+
message: 'Cannot parse invalid declaration',
32+
}
3033
export const INVALID_DECLARATION_VALUE_ERROR = {
3134
message: 'Cannot parse invalid declaration value',
3235
}

lib/serialize.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,8 @@ function serializeComponentValue(value, context) {
17031703
return serializeFeatureTagValue(value)
17041704
case '<function>':
17051705
return serializeFunction(value)
1706+
case '<function-token>':
1707+
return `${serializeIdentifier(value)}(`
17061708
case '<hash-token>':
17071709
return serializeHash(value)
17081710
case '<image-set-option>':

scripts/initial.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ function getInitialValue(name, value, context, depth) {
9696
console.error(`Parse error: cannot parse initial value of "${name}"`)
9797
return ''
9898
}
99-
({ value } = value)
10099
return [serializeComponentValue(value, depth), serializeValue({ name, value })]
101100
}
102101

0 commit comments

Comments
 (0)