Skip to content

Commit

Permalink
test: rename_and_inline
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 12, 2021
1 parent dd20d56 commit f9d9838
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/compress/toplevel-pure-method.js
Expand Up @@ -45,3 +45,27 @@ inline_different_name: {
}
}

// TODO:
rename_and_inline: {
options = {
toplevel: true,
defaults: true,
pure_getters: true
}
input: {
class MyClass {
method(a) {
myPureFunction(a)
}
}

function myPureFunction (a) {
console.log(a)
}

new MyClass();
}
expect: {
new class{method(a) {console.log(a)}};
}
}

0 comments on commit f9d9838

Please sign in to comment.