skip identifier with test for nodejs20
This commit is contained in:
parent
8d82d1d879
commit
5511a906e9
18
skip-identifier-with-test.patch
Normal file
18
skip-identifier-with-test.patch
Normal 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,
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -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 <lua>
|
||||
@ -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 <wangyue92@huawei.com> - 2.8.22-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user