[parser] Minor simplification to for in/of scope handling
Always pass in the target scope for the body, and check whether we're in LexicalVariableMode instead to distinguish for(let/const from for(var. Change-Id: Idf59423466f45eebe7c9d716f8eb6ccd92235abc Reviewed-on: https://chromium-review.googlesource.com/c/1388534Reviewed-by: Camillo Bruni <cbruni@chromium.org> Commit-Queue: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/master@{#58445}
Showing
Please
register
or
sign in
to comment