Regression: unnecessary assignment using SIMPLE_OPTIMIZATIONS
See original GitHub issueI have updated to the latest version v20180610 from the one I was using (v20170806) and I found the code below to add an unnecessary assignment on class constructors:
/**
* @constructor
* @struct
* @param {number} x
* @param {number} y
*/
function Character( x, y ) {
this.m_x = x;
this.m_y = y;
};
/**
* @constructor
* @struct
* @param {number} x
* @param {number} y
*/
function FroggerPlayer( x, y ) {
this.m_character = null;
this.m_character = new Character( x, y );
};
Previously this code was minified to:
function Character(a, b) {
this.m_x = a;
this.m_y = b
}
function FroggerPlayer(a, b) {
this.m_character = new Character(a, b)
};
But now is minified to:
function Character(a, b) {
this.m_x = a;
this.m_y = b
}
function FroggerPlayer(a, b) {
this.m_character = null;
this.m_character = new Character(a, b)
};
The compilation flags are: --language_in ECMASCRIPT5_STRICT --compilation_level SIMPLE_OPTIMIZATIONS
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Non-Linear Regression & Linear Programming (bsad-lab08)
We start by creating a simple linear regression model. Next, we plot the points to visually inspect the data and unravel any potential ......
Read more >C loop optimization help for final assignment (with compiler ...
So for my final assignment in my computer systems class, we need to optimize these for loops to be faster than the original....
Read more >Symbolic Regression: The Forgotten Machine Learning Method
The goal of a regression model is very simple: take as input one or more numbers and output another number. There are many...
Read more >Programming Data Mining Applications - Assignments
For this assignment you will experiment with various regression ... Load and preprocess the data using Pandas or Numpy and, if necessary, ...
Read more >Simple Linear Regression Using Statgraphics
Using the results of a regression analysis when the assumptions are invalid may lead to serious errors! Prior to reporting the results of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Assigning to myself to investigate because I suspect this is because of https://github.com/google/closure-compiler/commit/627f90f54952f0601bef6d5057675fd196d46a6b#diff-a55a956858d023be41b94bae129c5794
Closing this.