diff --git a/skip-identifier-with-test.patch b/skip-identifier-with-test.patch new file mode 100644 index 0000000..2ee0734 --- /dev/null +++ b/skip-identifier-with-test.patch @@ -0,0 +1,18 @@ +--- UglifyJS2-2.8.22/test/compress/issue-1770.js 2017-04-09 11:36:57.000000000 +0800 ++++ UglifyJS2-2.8.22/test/compress/issue-1770.js 2024-04-17 09:32:41.842653051 +0800 +@@ -168,7 +168,6 @@ + var: 58, + void: 59, + while: 60, +- with: 61, + }; + } + expect: { +@@ -233,7 +232,6 @@ + ba: 58, + ca: 59, + da: 60, +- ea: 61, + }; + } + } diff --git a/uglify-js.spec b/uglify-js.spec index 74b4d18..d9d642f 100644 --- a/uglify-js.spec +++ b/uglify-js.spec @@ -3,12 +3,13 @@ %global installdir %{_jsdir} Name: uglify-js Version: 2.8.22 -Release: 1 +Release: 2 Summary: JavaScript parser, mangler/compressor and beautifier toolkit License: BSD URL: https://github.com/mishoo/UglifyJS2 Source0: https://github.com/mishoo/UglifyJS2/archive/v%{version}/uglify-js-%{version}.tar.gz Patch0: uglify-js-esfuzz.patch +Patch1: skip-identifier-with-test.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch Provides: nodejs-uglify-js = %{version}-%{release} @@ -64,7 +65,7 @@ ln -sf uglify-js@2 %{buildroot}%{nodejs_sitelib}/uglify-js sed -i '/timeout/ s/5000/10000/' test/mocha/cli.js sed -i '/timeout/ s/10000/20000/' test/mocha/let.js sed -i '/timeout/ s/20000/40000/' test/mocha/spidermonkey.js -%__nodejs test/run-tests.js +NODE_DISABLE_COLORS=true %__nodejs test/run-tests.js %endif %pretrans -p @@ -92,5 +93,8 @@ end %license LICENSE %changelog +* Tue Apr 23 2024 wangkai <13474090681@163.com> - 2.8.22-2 +- skip identifier with test for nodejs20 + * Mon Aug 24 2020 wangyue - 2.8.22-1 - package init