From 8f0ad348f28f271900f6fce345eac36c6b114d93 Mon Sep 17 00:00:00 2001 From: Calvin Metcalf Date: Tue, 7 Apr 2020 08:20:10 -0400 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cbcfaf7..c821c32 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ function rename(code, tokenTo, tokenFrom) { var ast; try { ast = acorn.parse(code, { - ecmaVersion: 8, + ecmaVersion: 11, ranges: true, allowReturnOutsideFunction: true });