From 4d9a0856870fc8feb07771fe2e27d93c8613e857 Mon Sep 17 00:00:00 2001 From: Richard van Velzen Date: Tue, 26 Apr 2016 11:43:03 +0200 Subject: Add test case for hoisting a single function --- test/compress/issue-1052.js | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/test/compress/issue-1052.js b/test/compress/issue-1052.js index 067eea4a..bad28a8f 100644 --- a/test/compress/issue-1052.js +++ b/test/compress/issue-1052.js @@ -1,8 +1,6 @@ -hoist_funs_when_handling_if_return_rerversal: { +multiple_functions: { options = { if_return: true, hoist_funs: false }; input: { - "use strict"; - ( function() { if ( !window ) { return; @@ -13,8 +11,6 @@ hoist_funs_when_handling_if_return_rerversal: { } )(); } expect: { - "use strict"; - ( function() { function f() {} function g() {} @@ -25,3 +21,23 @@ hoist_funs_when_handling_if_return_rerversal: { } )(); } } + +single_function: { + options = { if_return: true, hoist_funs: false }; + input: { + ( function() { + if ( !window ) { + return; + } + + function f() {} + } )(); + } + expect: { + ( function() { + function f() {} + + if ( window ); + } )(); + } +} -- cgit v1.2.3 es/nss-pkgconfig.patch?id=28618b05f002720bc56bae76659717a0eba4dd8b'>treecommitdiff
path: root/gnu/packages/patches/nss-pkgconfig.patch
AgeCommit message (Expand)Author
2017-07-28gnu: nss, nss-certs: Update to 3.32....This release includes minor code changes and many certificate updates: <https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.32_release_notes> * gnu/packages/certs.scm (nss-certs): Update to 3.32. * gnu/packages/gnuzilla.scm (nss): Update to 3.32. [arguments]: Prevent another test file from being installed. * gnu/packages/patches/nss-pkgconfig.patch: Adjust. Marius Bakke