From 199db7e8af1968039d20255b1c98e229ae7f1eba Mon Sep 17 00:00:00 2001 From: vhermecz Date: Fri, 14 Feb 2020 17:42:45 +0100 Subject: [PATCH] #3613 fixing off-by-one error on compiler errors (#3692) 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 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 8a56ab6ae..89c5134f8 100755 --- a/build.py +++ b/build.py @@ -309,7 +309,7 @@ goog.provide('Blockly.utils.string'); def file_lookup(name): if not name.startswith("Input_"): return "???" - n = int(name[6:]) - 1 + n = int(name[6:]) return filenames[n] if "serverErrors" in json_data: