diff options
Diffstat (limited to 'test/compress/classes.js')
-rw-r--r-- | test/compress/classes.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/classes.js b/test/compress/classes.js index cebccf95..46749a27 100644 --- a/test/compress/classes.js +++ b/test/compress/classes.js @@ -779,6 +779,27 @@ computed_key_generator: { node_version: ">=4" } +keep_fnames: { + options = { + keep_fnames: true, + toplevel: true, + } + mangle = { + keep_fnames: true, + toplevel: true, + } + input: { + "use strict"; + class Foo {} + console.log(Foo.name, class Bar {}.name); + } + expect: { + "use strict"; + class Foo {} + console.log(Foo.name, class Bar {}.name); + } +} + issue_805_1: { options = { inline: true, |