browserify / browserify/tinyify
Function name shortened, but not function call
- Lenguaje dominante
- JavaScript
- Estrellas
- 405
- Forks
- 14
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Empieza con el ejemplo de JavaScript del issue y reprodúcelo mediante tinyify; compara la salida con browserify. Sigue la ruta de acortamiento de nombres y verifica que el nombre de la función acortado y su llamada se cambien de forma coherente; el trabajo estará terminado cuando el ejemplo ya no produzca "this.foo is not a function".
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- build-system, tooling
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100