string_plus_optimization: { options = { booleans: true, comparisons: true, conditionals: true, dead_code: true, evaluate: true, hoist_funs: true, if_return: true, join_vars: true, side_effects: true, unused: true, } input: { function foo(anything) { function throwing_function() { throw "nope"; } try { console.log('0' + throwing_function() ? "yes" : "no"); } catch (ex) { console.log(ex); } console.log('0' + anything ? "yes" : "no"); console.log(anything + '0' ? "Yes" : "No"); console.log('' + anything); console.log(anything + ''); } foo(); } expect: { function foo(anything) { function throwing_function() { throw "nope"; } try { console.log((throwing_function(), "yes")); } catch (ex) { console.log(ex); } console.log("yes"); console.log("Yes"); console.log('' + anything); console.log(anything + ''); } foo(); } expect_stdout: true } ref='/guix/commit/tests/gexp.scm?id=b12696075d41761a01013b1b24dbe44ad4df9c7b'>commitdiff
path: root/tests/gexp.scm
AgeCommit message (Expand)Author
2021-03-03gexp: #:references-graphs refers to non-native derivations....Ludovic Courtès
2021-02-23gexp: Micro-optimize 'gexp->sexp' and 'lower-inputs'....Ludovic Courtès
2021-02-23gexp: 'gexp-inputs' returns both native and non-native inputs....Ludovic Courtès
2021-02-23gexp: 'gexp-inputs' returns a list of <gexp-input> records....Ludovic Courtès
2020-12-15store-copy: 'populate-store' can optionally deduplicate files....Ludovic Courtès
2020-12-15store-copy: 'populate-store' resets timestamps....Ludovic Courtès
2020-11-05gexp: Warn when importing (guix config) or (ice-9 …)....Ludovic Courtès
2020-11-05gexp: Store the source code location in <gexp>....Ludovic Courtès