Function name shortened, but not function call
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- build-system, tooling
Research direction
Start with the JavaScript example in the issue and reproduce it through tinyify, comparing the output with browserify. Trace the name-shortening path and verify that the shortened function name and its call are changed consistently; done means the example no longer raises "this.foo is not a function".
Written by the indexing model from the issue text.
Description
There seems to be a problem with shortening names in some cases. Below is an example.
{
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.
- Dominant language
- JavaScript
- Stars
- 405
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from browserify/tinyify
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
browserify/tinyify#57 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
browserify/tinyify#56 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
browserify/tinyify#45 · 1 comment · 2 reactions ·
-
Shakeify issue? Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
browserify/tinyify#26 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
browserify/tinyify#24 · 1 comment ·
All issues in browserify/tinyify
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100