Skip to content
New issue

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

Remove unused f expression from jscode gen. #5573

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

samccone
Copy link
Contributor

@samccone samccone commented Jan 13, 2019

Variadic assignment in javascript where the right hand expression is an
object yields a single set assignment with the right most lefthand variable,
while leaving the other left side expressions undefined.

For example:
var a,b = {}

will only initialize a to undefined. But will set b to the {} value.

--

For this code since f is never used, it is a safe operation to remove
it.

Varadic assignment in javascript where the right hand expression is an
object yields a single set assignment with the right most lefthand variable,
while leaving the other left side expressions undefined.

For example:
var a,b = {}

will only initialize a to undefined. But will set b to the {} value.

--

For this code since f is never used, it is a safe operation to remove
it.
@TeBoring TeBoring merged commit 94a1819 into protocolbuffers:master Jan 14, 2019
@samccone samccone deleted the remove_f branch January 14, 2019 16:16
RathaR added a commit to RathaR/protobuf that referenced this pull request Feb 6, 2019
dankurka added a commit to dankurka/protobuf that referenced this pull request Mar 21, 2019
…5573)"

The removed variable here is actually used breaking downstream bazel
builds.
acozzette pushed a commit that referenced this pull request Mar 21, 2019
The removed variable here is actually used breaking downstream bazel
builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants