v8/test/unittests/torque
Simon Zünd da6543108d [torque] Add lint error for 'let' bindings that can be 'const'
This CL adds a lint error for variables that are unnecessarily bound
with 'let' when they could be bound using 'const. This test is skipped
for struct types. For struct types, the "constness" also depends on
the struct methods called and whether these methods write to the struct
or not. This is not straight-forward to detect.

Drive-by: Fix all the newly introduced lint errors.

Bug: v8:7793
Change-Id: I0522ffcc4321350eef2e9573b8430bc78200ddce
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1645322
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62085}
2019-06-11 11:29:21 +00:00
..
earley-parser-unittest.cc [torque] generate files per Torque file instead of per namespace 2019-06-05 16:12:27 +00:00
ls-json-unittest.cc Reland^3 "[torque] Throw exception instead of aborting if something goes wrong" 2019-04-16 10:41:20 +00:00
ls-message-unittest.cc [torque] generate files per Torque file instead of per namespace 2019-06-05 16:12:27 +00:00
ls-server-data-unittest.cc [torque] generate files per Torque file instead of per namespace 2019-06-05 16:12:27 +00:00
torque-unittest.cc [torque] Add lint error for 'let' bindings that can be 'const' 2019-06-11 11:29:21 +00:00
torque-utils-unittest.cc [torque-ls] fix Windows file paths 2019-04-24 08:17:07 +00:00