We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input:
function zaa() { class Foo { static fee() { console.log('fee') } static baa() { console.log('baa') } } Foo.baa() }; zaa();
Output:
(function() { function a() { } a.b = function() { console.log("fee"); }; a.a = function() { console.log("baa"); }; a.a(); })();
Expected the unused fee method to be removed.
Compare to global scope declaration, input:
class Foo { static fee() { console.log('fee') } static baa() { console.log('baa') } } Foo.baa();
output:
console.log("baa");
Object literal, input:
function zaa() { const Foo = { fee() { console.log('fee') }, baa() { console.log('baa') } } Foo.baa() }; zaa();
Prototype methods, input:
function zaa() { class Foo { fee() { console.log('fee') } baa() { console.log('baa') } } new Foo().baa() }; zaa();
(function() { function a() { } a.prototype.a = function() { console.log("baa"); }; (new a).a(); })();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Input:
Output:
Expected the unused fee method to be removed.
Compare to global scope declaration, input:
output:
Object literal, input:
output:
Prototype methods, input:
output:
The text was updated successfully, but these errors were encountered: