|
@@ -73,7 +73,7 @@ function generateFunctionFromString(expression, el) {
|
|
|| /^[\n\s]*if.*\(.*\)/.test(expression)
|
|
|| /^[\n\s]*if.*\(.*\)/.test(expression)
|
|
// Support expressions starting with "let/const" like: "let foo = 'bar'"
|
|
// Support expressions starting with "let/const" like: "let foo = 'bar'"
|
|
|| /^(let|const)\s/.test(expression)
|
|
|| /^(let|const)\s/.test(expression)
|
|
- ? `(() => { ${expression} })()`
|
|
|
|
|
|
+ ? `(async()=>{ ${expression} })()`
|
|
: expression
|
|
: expression
|
|
|
|
|
|
const safeAsyncFunction = () => {
|
|
const safeAsyncFunction = () => {
|