Skip to content

Commit

Permalink
Remove unnecessary semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Aug 20, 2020
1 parent f2cebee commit b03d079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile.ts
Expand Up @@ -20,7 +20,7 @@ export default function compile (str: string, env?: PartialConfig): TemplateFunc
// Have to use generated function for this, since in envs without support,
// it breaks in parsing
try {
ctor = new Function('return (async function(){}).constructor;')()
ctor = new Function('return (async function(){}).constructor')()
} catch (e) {
if (e instanceof SyntaxError) {
throw EtaErr("This environment doesn't support async/await")
Expand Down

0 comments on commit b03d079

Please sign in to comment.