diff --git a/src/NUglify.Tests/TestData/JS/Expected/Bugs/Bug391.js b/src/NUglify.Tests/TestData/JS/Expected/Bugs/Bug391.js new file mode 100644 index 00000000..c4f20a2c --- /dev/null +++ b/src/NUglify.Tests/TestData/JS/Expected/Bugs/Bug391.js @@ -0,0 +1 @@ +function func(){return{...{arrow:()=>{},anonymous:function(){},named:function(){}}}} \ No newline at end of file diff --git a/src/NUglify.Tests/TestData/JS/Input/Bugs/Bug391.js b/src/NUglify.Tests/TestData/JS/Input/Bugs/Bug391.js new file mode 100644 index 00000000..81cce72a --- /dev/null +++ b/src/NUglify.Tests/TestData/JS/Input/Bugs/Bug391.js @@ -0,0 +1,9 @@ +function func() { + return { + ...{ + arrow: () => { }, + anonymous: function () { }, + named: function name() { }, + } + }; +} \ No newline at end of file