Skip to content

Commit f57e33f

Browse files
committed
visitor(calculate-constant-exp): fix bug
Signed-off-by: echo094 <20028238+echo094@users.noreply.github.com>
1 parent a72e5d7 commit f57e33f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/visitor/calculate-constant-exp.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ function calculateBinaryExpression(path) {
3333
const code = generator(path.node).code
3434
try {
3535
const ret = eval(code)
36-
path.replaceWithSourceString(ret)
3736
// The strings cannot use replaceWithSourceString
3837
// For example, string "ab" will be parsed as identifier ab
3938
if (typeof ret === 'string') {

0 commit comments

Comments
 (0)