Skip to content

Commit

Permalink
Merge pull request #61 from Llorx/patch-2
Browse files Browse the repository at this point in the history
[Bug] Fix engine modifying AST
  • Loading branch information
Siubaak committed May 6, 2020
2 parents b5ae4b3 + 614a59c commit 9848a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evaluate/expression.ts
Expand Up @@ -405,8 +405,8 @@ export function* ArrowFunctionExpression(node: estree.ArrowFunctionExpression, s
}

export function* TemplateLiteral(node: estree.TemplateLiteral, scope: Scope) {
const quasis = node.quasis
const expressions = node.expressions
const quasis = node.quasis.slice();
const expressions = node.expressions.slice();

let result = ''
let temEl: estree.TemplateElement
Expand Down Expand Up @@ -491,4 +491,4 @@ export function* AwaitExpression(node: estree.AwaitExpression, scope: Scope) {
AWAIT.RES = yield* evaluate(node.argument, scope)
return yield AWAIT
}
/*</remove>*/
/*</remove>*/

0 comments on commit 9848a88

Please sign in to comment.