skip identifier with test for nodejs20

This commit is contained in:
wk333 2024-04-23 10:15:40 +08:00
parent 8d82d1d879
commit 5511a906e9
2 changed files with 24 additions and 2 deletions

View File

@ -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,
};
}
}

View File

@ -3,12 +3,13 @@
%global installdir %{_jsdir} %global installdir %{_jsdir}
Name: uglify-js Name: uglify-js
Version: 2.8.22 Version: 2.8.22
Release: 1 Release: 2
Summary: JavaScript parser, mangler/compressor and beautifier toolkit Summary: JavaScript parser, mangler/compressor and beautifier toolkit
License: BSD License: BSD
URL: https://github.com/mishoo/UglifyJS2 URL: https://github.com/mishoo/UglifyJS2
Source0: https://github.com/mishoo/UglifyJS2/archive/v%{version}/uglify-js-%{version}.tar.gz Source0: https://github.com/mishoo/UglifyJS2/archive/v%{version}/uglify-js-%{version}.tar.gz
Patch0: uglify-js-esfuzz.patch Patch0: uglify-js-esfuzz.patch
Patch1: skip-identifier-with-test.patch
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
Provides: nodejs-uglify-js = %{version}-%{release} 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/5000/10000/' test/mocha/cli.js
sed -i '/timeout/ s/10000/20000/' test/mocha/let.js sed -i '/timeout/ s/10000/20000/' test/mocha/let.js
sed -i '/timeout/ s/20000/40000/' test/mocha/spidermonkey.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 %endif
%pretrans -p <lua> %pretrans -p <lua>
@ -92,5 +93,8 @@ end
%license LICENSE %license LICENSE
%changelog %changelog
* Tue Apr 23 2024 wangkai <13474090681@163.com> - 2.8.22-2
- skip identifier with test for nodejs20
* Mon Aug 24 2020 wangyue <wangyue92@huawei.com> - 2.8.22-1 * Mon Aug 24 2020 wangyue <wangyue92@huawei.com> - 2.8.22-1
- package init - package init