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

#3613 fixing off-by-one error on compiler errors #3692

Merged
merged 1 commit into from Feb 14, 2020

Conversation

vhermecz
Copy link
Contributor

As both the python filename array and the Input_X indexing is 0 based, the -1 operation is not needed.

fromFileArray in closure-compiler uses 0 based indexing. see:

https://github.com/google/closure-compiler/blob/09cca3b536923dfb86d4e2ea34c8ee97d3ab471c/src/com/google/javascript/jscomp/gwt/client/JsRunnerMain.java#L816

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#3613

As both the python filename array and the Input_X indexing is 0 based, the `-1` operation is not needed.

fromFileArray in closure-compiler uses 0 based indexing. see:

https://github.com/google/closure-compiler/blob/09cca3b536923dfb86d4e2ea34c8ee97d3ab471c/src/com/google/javascript/jscomp/gwt/client/JsRunnerMain.java#L816
@vhermecz
Copy link
Contributor Author

Originally created a PR against my own fork.

@vhermecz vhermecz changed the base branch from master to develop February 14, 2020 12:46
@alschmiedt alschmiedt merged commit 199db7e into google:develop Feb 14, 2020
@alschmiedt
Copy link
Contributor

@vhermecz Thanks for the fix! Just a heads up, we are moving away from build.py in favor of using gulp and npm (more info found here). I checked and it doesn't look like this bug is replicated there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants