browserify / browserify/tinyify

Function name shortened, but not function call

Open
#25 9 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
405
Forks
14
PR merge metrics
No merged PRs in 30d

Description

There seems to be a problem with shortening names in some cases. Below is an example.

```js
{
addOnclick: function(){
element.onclick = ()=>{this.foo("some string")};
},

foo: function(str){
//do things
}
}
```

I get: "this.foo is not a function"
What it looks like is happening is that it is changing the name of the function, but it is not changing the call to that function. It seems to do this everywhere that I have this format as far as I can tell. It works with browserify of course, but it breaks with tinyify.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.