Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
javascript
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2022 at 09:06 UTC
Updated:
29 Sep 2022 at 17:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nod_Comment #3
wim leersExcellent find! 👍
Comment #4
longwaveWonder if we should remove this check, why wouldn't the file exist?
Comment #5
nod_I guess if you're in the wrong directory it wouldn't exist :p
That's fair enough, no strong feeling either way.
Comment #6
longwaveYeah, I was trying to get at the fact the script would have likely failed if that check were not present, so changing it should prevent this from happening again.
Comment #7
nod_seems to work as intended:
Made that piece of code similar to the yaml linting, changed the name of the variable, and added a printf to say the check passed as expected.
Comment #10
lauriiiI think that's from a time when we had supported branches that didn't ship with the eslint configuration.
Confirmed manually on local that the fix works.
Committed b5d5cdd and pushed to 10.1.x. Also cherry-picked to 10.0.x. Thanks!