Skip to content

Commit 53670b8

Browse files
committed
Update for changes in TypeScript
1 parent cd2b238 commit 53670b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,9 @@ function parseStyle(value, tagName) {
687687
try {
688688
style(value, iterator)
689689
} catch (error) {
690-
error.message =
691-
tagName + '[style]' + error.message.slice('undefined'.length)
690+
const exception = /** @type {Error} */ (error)
691+
exception.message =
692+
tagName + '[style]' + exception.message.slice('undefined'.length)
692693
throw error
693694
}
694695

0 commit comments

Comments
 (0)