!5 skip identifier with test for nodejs20

From: @wk333 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2024-04-23 02:33:44 +00:00 committed by Gitee
commit 976fea61a3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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}
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