escodegen icon indicating copy to clipboard operation
escodegen copied to clipboard

escodegen 1.7 breaks esmangle

Open ariya opened this issue 9 years ago • 1 comments

The latest published version 1.7.0 seems to break the current esmangle:

git clone [email protected]:estools/esmangle.git
cd esmangle
npm install
npm view escodegen version  # shows that 1.7.0 was installed
npm test

The test test/compare/escapeless.js would fail.

ariya avatar Sep 12 '15 14:09 ariya

If esmangle's package.json is patched so that only escodegen 1.6.x is being used:

diff --git a/package.json b/package.json
index 9094da3..f762d98 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
   },
   "dependencies": {
     "camel-case": "^1.1.2",
-    "escodegen": "^1.6.1",
+    "escodegen": "~1.6.1",
     "escope": "~2.0.6",
     "esprima": "^2.0.0",
     "esshorten": "~1.1.0",

then all the tests continue to pass.

ariya avatar Sep 12 '15 14:09 ariya