index : tracifyjs | ||
Reverse engineer's tool for tracing the flow of data in JS program, based on UglifyJS |
aboutsummaryrefslogtreecommitdiff |
-rw-r--r-- | test/compress/awaits.js | 24 |
diff --git a/test/compress/awaits.js b/test/compress/awaits.js index 7ae753fb..8caa60c0 100644 --- a/test/compress/awaits.js +++ b/test/compress/awaits.js @@ -1,3 +1,27 @@ +async_arrow: { + input: { + (async a => console.log(a))("PASS"); + console.log(typeof (async () => 42)()); + } + expect_exact: '(async a=>console.log(a))("PASS");console.log(typeof(async()=>42)());' + expect_stdout: [ + "PASS", + "object", + ] + node_version: ">=8" +} + +async_label: { + input: { + (async function() { + async: console.log("PASS"); + })(); + } + expect_exact: '(async function(){async:console.log("PASS")})();' + expect_stdout: "PASS" + node_version: ">=8" +} + await_await: { input: { (async function() { |