From 58e65324dd91a4e019e6804bb12941083bc64789 Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Sat, 24 Jun 2017 03:48:55 +0800 Subject: [PATCH] add test --- test/compress/arrow.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/compress/arrow.js b/test/compress/arrow.js index 86ee1a84..a0a97e03 100644 --- a/test/compress/arrow.js +++ b/test/compress/arrow.js @@ -202,3 +202,11 @@ arrow_unused_toplevel: { expect_stdout: [ "0", "1", "2", "9" ] node_version: ">=6" } + +no_leading_parentheses: { + input: { + (x,y) => x(y); + async (x,y) => await x(y); + } + expect_exact: "(x,y)=>x(y);async(x,y)=>await x(y);" +}