lambda_call_dot_assign: { beautify = { webkit: false, } input: { console.log(function() { return {}; }().a = 1); } expect_exact: "console.log(function(){return{}}().a=1);" expect_stdout: "1" } lambda_call_dot_assign_webkit: { beautify = { webkit: true, } input: { console.log(function() { return {}; }().a = 1); } expect_exact: "console.log((function(){return{}}()).a=1);" expect_stdout: "1" } lambda_dot_assign: { beautify = { webkit: false, } input: { console.log(function() { 1 + 1; }.a = 1); } expect_exact: "console.log(function(){1+1}.a=1);" expect_stdout: "1" } lambda_dot_assign_webkit: { beautify = { webkit: true, } input: { console.log(function() { 1 + 1; }.a = 1); } expect_exact: "console.log((function(){1+1}).a=1);" expect_stdout: "1" } lambda_name_mangle: { mangle = {} input: { console.log(typeof function foo(bar) {}); } expect_exact: "console.log(typeof function o(n){});" expect_stdout: "function" } lambda_name_mangle_ie8: { mangle = { ie8: true, toplevel: true, } input: { console.log(typeof function foo(bar) {}); } expect_exact: "console.log(typeof function n(o){});" expect_stdout: "function" } function_name_mangle: { options = { keep_fnames: true, reduce_vars: true, unused: true, } mangle = {} input: { (function() { function foo(bar) {} console.log(typeof foo); })(); } expect_exact: "(function(){console.log(typeof function o(n){})})();" expect_stdout: "function" } function_name_mangle_ie8: { options = { keep_fnames: true, reduce_vars: true, unused: true, } mangle = { ie8: true, toplevel: true, } input: { (function() { function foo(bar) {} console.log(typeof foo); })(); } expect_exact: "(function(){console.log(typeof function n(o){})})();" expect_stdout: "function" } og/tests/debug-link.scm?id=28e40fc369464ed12c519e76c9e36320b4d3c460'>debug-link.scm
AgeCommit message (Expand)Author
2018-11-12tests: Add 'test-assertm' to (guix tests)....* guix/tests.scm (test-assertm): New macro. * tests/gexp.scm (test-assertm): Remove. * tests/profiles.scm (test-assertm): Remove. * tests/challenge.scm (%store, test-assertm): Remove. * tests/debug-link.scm (%store, test-assertm): Remove. * tests/size.scm (%store, test-assertm): Remove. Ludovic Courtès
2018-08-24grafts: Add (guix build debug-link) and use it....Fixes <https://bugs.gnu.org/19973>. Reported by Mark H Weaver <mhw@netris.org>. * guix/build/debug-link.scm: New file. * guix/build/graft.scm (%graft-hooks): New variable. (graft): Add #:hooks and honor it. * guix/grafts.scm (graft-derivation/shallow): Add (guix build debug-link) and (guix elf) to #:modules. * tests/debug-link.scm: New file. * Makefile.am (MODULES): Add guix/build/debug-link.scm. (SCM_TESTS): Add tests/debug-link.scm. Ludovic Courtès