[html] A 'return' statement can only be used within a function body. Fixes #143220

This commit is contained in:
Martin Aeschlimann
2022-03-21 20:27:16 +01:00
parent 25b8086407
commit 56661ec16a
2 changed files with 3 additions and 2 deletions

View File

@@ -181,6 +181,7 @@ function getPrefix(c: EmbeddedRegion) {
if (c.attributeValue) {
switch (c.languageId) {
case 'css': return CSS_STYLE_RULE + '{';
case 'javascript': return '()=>{';
}
}
return '';
@@ -189,7 +190,7 @@ function getSuffix(c: EmbeddedRegion) {
if (c.attributeValue) {
switch (c.languageId) {
case 'css': return '}';
case 'javascript': return ';';
case 'javascript': return '};';
}
}
return '';